Reputation: 3965
In my Spring App, I have a controller annotated like so:
@Controller
@RequestMapping("/1/site")
If I try to change the request mapping value to this, I get a 404:
@Controller
@RequestMapping("/1.0/site")
What is happening with the period, and how do I fix it?
Upvotes: 3
Views: 928
Reputation: 23535
The dot has special meaning in URLs. I'd refrain from using it the way you intended. Use a dash or underscore instead. See SPR-5778 for details.
Upvotes: 5