728x90 swagger1 Swagger2 설정하기 Dependency implementation 'io.springfox:springfox-swagger2:2.9.2' implementation 'io.springfox:springfox-swagger-ui:2.9.2' SwaggerConfig @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket swaggerApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo(swaggerInfo()).select() .apis(RequestHandlerSelectors.basePackage("com.nextloop.nearlog")) .paths(PathSelector.. 2020. 7. 15. 이전 1 다음 728x90