Swagger를 적용한 후 에러가 아래와 같은 에러가 발생하였다.
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
Spring boot 2.6버전 이후에 spring.mvc.pathmatch.matching-strategy 값이 ant_apth_matcher에서 path_pattern_parser로 변경되면서 몇몇 라이브러리(swagger포함)에 오류가 발생한다고 한다.
application.properties에 아래 코드를 추가하였더니 해결되었다.
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
참고
swagger 연동을 할려고 하는데 에러가 발생합니다 - 인프런 | 질문 & 답변
지금 현재 swagger 해보고 있는데 org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exc...
www.inflearn.com