swagger2 #spring-boot
-
스프링부트_Swagger2Spring Boot 2019. 8. 29. 21:58
src > main > webapp webapp폴더가 없으면 추가를 해야한다. pom.xml 설정 io.springfox springfox-swagger2 2.6.1 io.springfox springfox-swagger-ui 2.6.1 com.google.guava guava 25.1-jre SwaggerConfig.java @Configuration @EnableSwagger2 public class SwaggerConfig extends WebMvcConfigurerAdapter { @Bean public Docket api() { return new Docket(DocumentationType.SWAGGER_2) .select() .apis(RequestHandlerSelectors.any()) ..