mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-29 10:50:33 +00:00
SPR-5726: Unexpected @RequestMapping semantics when class-level and method-level mappings used together
This commit is contained in:
+1
-1
@@ -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