SpringBoot Swagger Set

Henry·2023년 2월 1일
0

1. build.gradle 설정

dependencies {	
    implementation("io.springfox:springfox-boot-starter:3.0.0")
    implementation("io.springfox:springfox-swagger-ui:3.0.0")
}    

.

2. application.yml 설정

SpringBoot 2.6 이상인 경우 없으면 해당 오류 발생

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

spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

.

3. swagger 적용 ( 작성중 )

.

참고사항 ( 작성중 )

profile
삽질은 한번만... 제발...

0개의 댓글