[Error] SpringBoot 2.6.X 에서 swagger 3.0 사용법

org.springframework.context.ApplicationContextException: 

Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 와 같은 에러가 자꾸 발생해서 여러 가지 해결 방법을 모아서 정리해 보았다.

 

 

방법 1 )

 

이 블로그를 참조해보세요!

 

https://jackyee.tistory.com/24

 

SpringBoot 2.6에서 swagger 3.0 사용

환경 : 인텔리제이 jdk1.8 SpringBoot 2.6.1 gradle Swagger 3.0.0 SwaggerUI 3.0.0 swagger를 적용하는 방법은 구글 검색하면 다른 분들이 잘 써놔서 검색하면 잘 나올것이다 그런데 나는 SpringBoot 2.6.1 환경..

jackyee.tistory.com

 

 

방법 2 ) maven

 

위의 방법을 사용했음에도 불구하고.. http://localhost:8080/swagger-ui/index.html 로 접근이 안되었다..!

→ pom.xml에 dependency를 추가하고 다시 접속하면 해결된다!

 

 <dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-boot-starter</artifactId>
    <version>3.0.0</version>
</dependency>

 

 

방법 3) gradle

 

application.yml 에 아래 설정을 추가해준다!

 mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

 

댓글