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

后端 未结 17 1522
被撕碎了的回忆
被撕碎了的回忆 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:38

    As far as i know this issue appears only for the pathvariable at the end of the requestmapping.

    We were able to solve that by defining the regex addon in the requestmapping.

     /somepath/{variable:.+}
    

提交回复
热议问题