🚨 오류해결
[오류해결] Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
케로⸝⸝◜࿀◝ ⸝⸝
2024. 4. 24. 21:16
스프링 부트로 프로젝트를 진행하던 중, Swagger 적용 중에 다음과 같은 오류를 만났다!
Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
스프링 부트 2.6 버전 이후에 spring.mvc.pathmatch.matching-strategy 값이
ant_path_matcher 에서 path_pattern_parser 로 바뀌면서 발생한 에러라고!
고치는 방법은 아래와 같다.
application.properties 파일에 한 줄 추가
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
또는
application.yml 이라면!!
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
잘된다제~잘된다제~
반응형