Skip to content

Parameter annotations such as @RequestParam not applied from an interface [SPR-7567] #12224

Closed
@spring-projects-issues

Description

@spring-projects-issues

Richard Larson opened SPR-7567 and commented


public interface ListableController<Model> {
	
	@ModelAttribute("results")
	@RequestMapping(method = RequestMethod.GET)
	public List<Model> index(
			@RequestParam(defaultValue = "1") Integer page);

}
//Page should be equal to one but is not.
public class Foo implements ListableController<Person> {
	public List<Person> index(Integer page) {
		System.out.println(page + " should be equal to one but is not.");
		return new ArrayList<Person>();
	}
}

May possibly be related to #11985.


Affects: 3.0.4

Attachments:

Issue Links:

2 votes, 7 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: bulk-closedAn outdated, unresolved issue that's closed in bulk as part of a cleaning process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions