전공 공부/스프링
[Spring] Swagger Config
# build.gradle implementation 'io.springfox:springfox-boot-starter:3.0.0' implementation 'io.springfox:springfox-swagger-ui:3.0.0' # application.yml spring: mvc: pathmatch: matching-strategy: ant_path_matcher # SwaggerConfig.java @Configuration public class SwaggerConfig { @Bean public Docket api() { return new Docket(DocumentationType.OAS_30) .useDefaultResponseMessages(true) .apiInfo(apiInfo()..
2023. 7. 13. 09:00