× - 코드 및 콘솔 화면은 [ code ] 내용 [ /code ] 태그 처리하여 주세요.
- 강조하고자 하는 내용은 [ b ] 내용 [ /b ] 태그 처리하여 주세요.

Spring의 @PathVariable에서 .(dot)이 포함된 경우 뒷부분이 잘립니다.

  • helloworld
    (stdio.h)
  • helloworld's Avatar 이 글의 작성자
  • Offline
  • Junior
  • Junior
더보기
27 Jan 2016 01:42 - 27 Jan 2016 01:44 #504 작성자: helloworld
helloworld 님의 글: Spring의 @PathVariable에서 .(dot)이 포함된 경우 뒷부분이 잘립니다.
예를 들어 지금은 /aaa/sample.xml을 처리하기 위해
@RequestMapping(value = "/aaa/{file:.+}")을 걸었는데,

sample.xml 중 sample만 인식하는 문제가 있네요.

sample.xml처럼 .(dot)을 포함하여 모두 인식하게 할 수 없을지 궁금합니다.
  • osstech
    (열린기술자)
  • osstech's Avatar
  • Offline
  • Junior
  • Junior
더보기
27 Jan 2016 01:45 #505 작성자: osstech
osstech 님의 답글: Spring의 @PathVariable에서 .(dot)이 포함된 경우 뒷부분이 잘립니다.
@RequestMapping(value = "/aaa/{file:.+}") 와 같이 해보시면 될 것 같습니다.
Time to create page: 0.053 seconds
Powered by Kunena Forum