-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement
Description
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:
- Add convention-over-configuration support for @RequestMapping [SPR-4125] #8804 Add convention-over-configuration support for
@RequestMapping - Comprehensive REST Support [SPR-4419] #9097 Comprehensive REST Support
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement