Closed
Description
Arjen Poutsma opened SPR-5631 and commented
When a @Controller
has a class-level @RequestMapping
annotation, with further sub-paths mappings defined on the methods, it makes sense to implicitely add /** to the type-level annotation.
Since method mappings can just have a RequestMethod (GET or POST)on it, with no further path information, we have to be a little clever about this.
Issue Links:
- Unexpected @RequestMapping semantics when class-level and method-level mappings used together [SPR-5726] #10396 Unexpected
@RequestMapping
semantics when class-level and method-level mappings used together - When using request mappings at the type-level like /hotels/*, it should be possible to define a controller handler method for the root like /hotels [SPR-4494] #9172 When using request mappings at the type-level like /hotels/*, it should be possible to define a controller handler method for the root like /hotels
- @RequestMapping matching should be insensitive to trailing slashes [SPR-5636] #10307
@RequestMapping
matching should be insensitive to trailing slashes