| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 백엔드
- JPA
- queue
- actuator
- 개발자
- 컴퓨터 구조
- 컴퓨터 공학
- 서버
- Java
- 스프링부트
- 프로그래머스
- 핵심가이드
- 백엔드공부
- LinkedList
- 백엔드스쿨
- restTemplate
- QueryDSL
- spring boot
- 제로베이스
- 자료구조
- array
- SpringBoot
- 연관관계
- ORM
- 백준
- spring
- JWT
- error
- TestCode
- SpringSecurity
Archives
- Today
- Total
be_better
[Springboot] swagger 에러 - Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 본문
Springboot/Error 해결
[Springboot] swagger 에러 - Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
NiceTry 2023. 11. 20. 02:25목차
swagger 에러
dependencies {
implementation 'io.springfox:springfox-boot-starter:3.0.0'
}
dependencies에 swagger 의존성을 추가하고 Application을 실행시키면
Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
에러가 발생한다.

원인으로는
spring.mvc.pathmatch.matching-strategy의 default 값이 ant_path_matcher -> path_pattern_parser로 변경되면서 몇몇 라이브러리에서 발생이 된다고 한다.
해결방법
application.yml 파일에 pathmatch 을 설정해주면 된다.
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher