remark : 설치 및 실행 방법
1.gradle
1 2 3 |
implementation group: 'io.springfox', name: 'springfox-boot-starter', version: '3.0.0' |
2.실행
http://localhost:8080/swagger-ui/
3.에러시
1 2 3 4 5 6 7 |
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:181) ~[spring-context-5.3.23.jar:5.3.23] at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) ~[spring-context-5.3.23.jar:5.3.23] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356) ~[spring-context-5.3.23.jar:5.3.23] at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[na:na] |
4.에러시 – application.properties 에 추가
1 2 3 |
spring.mvc.pathmatch.matching-strategy=ant_path_matcher |