SPR-6482 - @RequestMapping handled incorrectly when value contains "." (dot) character

This commit is contained in:
Arjen Poutsma
2009-12-07 13:59:07 +00:00
parent f36e8252c8
commit 976f920db2
4 changed files with 55 additions and 10 deletions

View File

@@ -398,7 +398,7 @@ public class UriTemplateServletAnnotationControllerTests {
@RequestMapping("hotels")
public static class ImplicitSubPathController {
@RequestMapping("{hotel:.*}")
@RequestMapping("{hotel}")
public void handleHotel(@PathVariable String hotel, Writer writer) throws IOException {
writer.write("test-" + hotel);
}