swagger31 Spring boot + Swagger 3.0 dependency 추가 (gradle 기준) dependencies { ... implementation "io.springfox:springfox-boot-starter:3.0.0" compile 'io.springfox:springfox-swagger-ui:3.0.0' } 설정파일 추가 (SwaggerConfig.java) @Configuration public class SwaggerConfig { @Bean public Docket api() { return new Docket(DocumentationType.OAS_30) // open api spec 3.0 .select() .apis(RequestHandlerSelectors.any()) .paths(PathSelectors.any()) ... 2021. 4. 13. 이전 1 다음