3

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?

user1007895
  • 3,925
  • 11
  • 41
  • 63
  • 1
    Did you explore issues such as [this](http://stackoverflow.com/questions/2079299/trying-to-create-rest-ful-urls-with-mulitple-dots-in-the-filename-part-sprin) and [this](http://stackoverflow.com/questions/3526523/spring-mvc-pathvariable-getting-truncated)? It's likely due to extension handling. – Dave Newton Jan 04 '13 at 17:40

1 Answers1

5

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.

Marcel Stör
  • 22,695
  • 19
  • 92
  • 198