Spring MVC @PathVariable with dot (.) is getting truncated

后端 未结 17 1318
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 06:00

This is continuation of question Spring MVC @PathVariable getting truncated

Spring forum states that it has fixed(3.2 version) as part of ContentNegotiationManager.

17条回答
  •  不思量自难忘°
    2020-11-22 06:46

    One pretty easy way to work around this issue is to append a trailing slash ...

    e.g.:

    use :

    /somepath/filename.jpg/
    

    instead of:

    /somepath/filename.jpg
    

提交回复
热议问题