Logs
[Error] org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 에러 해결하는 방법 (with yml, properties)
랩실외톨이
2023. 6. 30. 05:13
반응형
org.springframework.context.ApplicationContextException:
Failed to start bean 'documentationPluginsBootstrapper';
nested exception is java.lang.NullPointerException
Swagger 관련 에러이다.
Spring boot 2.6 버전 이후에 설정값이
spring.mvc.pathmatch.matching-strategy: ant_apth_matcher => path_pattern_parser
변경되면서 생긴 에러라고 한다. 설정 파일에 이렇게 적어주면 문제가 해결된다.
application.yml
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
application.properties
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
반응형