728x90
스프링 부트에서 프로젝트를 생성 후 Swagger 를 연결하고 있었는데, 아래와 같은 에러가 발생했습니다.

에러 내용은 다음과 같습니다.
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
Spring boot 2.6 버전 이후에 spring.mvc.pathmatch.matching-strategy 값이 ant_apth_pattern_parser 로 변경되면서 몇몇 라이브러리에서 오류가 발생하고 있었던 것입니다.
따라서, application.properties 파일에 아래와 같이 작성해줍니다.
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
서버를 다시 실행하면 잘 구동되는 것을 확인할 수 있습니다.
728x90
'Back-End > Spring' 카테고리의 다른 글
[Spring Boot] Json 과 MultipartFile 한 번에 전달받는 API (feat. Postman) (0) | 2023.05.05 |
---|---|
[Spring Boot] Spring Security 사용 중 Swagger 401 에러 페이지 (0) | 2023.04.02 |
[Spring] Spring Tomcat 10 실행 시 에러 (java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener) (0) | 2023.03.05 |
[Spring Boot] Spring Boot & MySQL 연동 (0) | 2023.01.09 |
[Spring Boot] Spring Boot - Spring Initializr 로 프로젝트 생성 (0) | 2022.12.29 |