SPR-5726: Unexpected @RequestMapping semantics when class-level and method-level mappings used together
This commit is contained in:
@@ -319,7 +319,7 @@ public class UriTemplateServletAnnotationControllerTests {
|
||||
writer.write("create");
|
||||
}
|
||||
|
||||
@RequestMapping(value = "{hotel}", method = RequestMethod.GET)
|
||||
@RequestMapping(value = "/{hotel}", method = RequestMethod.GET)
|
||||
public void show(@PathVariable String hotel, Writer writer) throws IOException {
|
||||
writer.write("show-" + hotel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user