Skip to content

Expose path-related request mapping settings in the MVC Java config [SPR-11486] #16111

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-11486 and commented

The MVC XML namespace recently exposed path-related request mapping settings (see #14796). Although such settings can be configured through MVC Java config by extending directly from WebMvcConfigurationSupport and overriding the RequestMappingHandlerMapping @Bean method, it would be nice to expose the same options through the WebMvcConfigurer interface.

Path related settings are very commonly customized so it's worth making it easier and obvious. It would also help Spring Boot users who otherwise currently have to take over the entire web auto configuration (see spring-projects/spring-boot#401). Last but not least this provides consistency with the XML namespace.


Affects: 4.0.2

Issue Links:

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions