[Spring-error해결] Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException

99winnmin·2022년 6월 30일
0

Spring-error이슈

목록 보기
1/4

Spring에서 swagger를 사용하기 위해 서버를 실행해보니

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로 변경되면서 몇몇 라이브러리에서 오류가 발생하고 있다!
출처: https://goyunji.tistory.com/137 [개발하는 농부:티스토리]

이를 해결하는 방법은 src/main/resources/application.properties 파일에

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

이 한줄을 추가해주면 문제가 해결된다

profile
功在不舍

0개의 댓글