SPR-5726: Unexpected @RequestMapping semantics when class-level and method-level mappings used together

This commit is contained in:
Arjen Poutsma
2009-05-08 10:02:17 +00:00
parent 266a65982d
commit 4025df1ef8
2 changed files with 4 additions and 2 deletions

View File

@@ -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);
}