@RequestMapping: convention-based URL mapping at controller class level [SPR-5058] #9733
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Yang Lifan opened SPR-5058 and commented
I think Spring MVC URL mapping is a disadvantage for Spring Web. ControllerClassNameHandlerMapping and BeanNameHandlerMapping are a little agile, but they can only map the url to the class level, can not support the method level.
In Spring MVC 2.5, DefaultAnnotationHandlerMapping is a new way for URL Mapping. Developers can use
@RequestMapping
to map a url to a class level or a method level. But the url is hard coded. And the url mapping value even has the url request suffix.http://jira.springframework.org/browse/SPR-4125 The opinion in this report is valuable. Maybe there is a better solution. Whatever, currently, the url mapping strategy in Spring MVC need to be improved.
Affects: 2.5.5
Issue Links:
@RequestMapping
The text was updated successfully, but these errors were encountered: