본문 바로가기
Snippets/Spring

[Spring 단편집] Spring boot 2.6 업그레이드 이슈 : spring.mvc.pathmatch.matching-strategy 기본값 변경

by 블리드카가 2021. 12. 21.
728x90

1. 상황

  • Spring Boot 2.5 -> Spring Boot 2.6 으로 업그레이드 후 테스트 코드 수행시 아래와 같은 에러 발생
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: Expected lookupPath in request attribute "org.springframework.web.util.UrlPathHelper.PATH".

    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
    ...

2. 조치

728x90