Framework/Spring Boot

[Error] Failed to start bean 'documentationPluginsBootstrapper'

잔망루피 2023. 1. 21. 20:58
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null
Caused by: java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null

 

 

⭐ 해결

spring:
    mvc:
        pathmatch:
          matching-strategy: ant_path_matcher

나는 Spring boot 2.6.14 버전 쓴다.

application.yml에 추가

 

 

 👇참고

https://goyunji.tistory.com/137

 

[오류해결-swagger] Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerExcepti

Spring boot에서 swagger를 사용하기 위해 아래와 같이 추가하고 서버를 실행하니 하니 아래와 같은 오류가 발생했다. // https://mvnrepository.com/artifact/io.springfox/springfox-boot-starter implementation group: 'io.spring

goyunji.tistory.com

 

반응형