diff --git a/src/main/java/com/movelog/MoveLogApplication.java b/src/main/java/com/movelog/MoveLogApplication.java index dfd98d6..940069d 100644 --- a/src/main/java/com/movelog/MoveLogApplication.java +++ b/src/main/java/com/movelog/MoveLogApplication.java @@ -12,6 +12,7 @@ @EnableFeignClients @PropertySource(value = { "classpath:oauth2/application-oauth2.yml" }, factory = YamlPropertySourceFactory.class) @PropertySource(value = { "classpath:database/application-database.yml" }, factory = YamlPropertySourceFactory.class) +@PropertySource(value = { "classpath:swagger/application-springdoc.yml" }, factory = YamlPropertySourceFactory.class) //@PropertySource(value = { "classpath:s3/application-s3.yml" }, factory = YamlPropertySourceFactory.class) public class MoveLogApplication { diff --git a/src/main/resources/swagger/application-springdoc.yml b/src/main/resources/swagger/application-springdoc.yml new file mode 100644 index 0000000..c06081a --- /dev/null +++ b/src/main/resources/swagger/application-springdoc.yml @@ -0,0 +1,16 @@ +springdoc: + swagger-ui: + path: swagger + # "사용해 보기" 섹션이 기본적으로 활성화 되어야 하는지 여부를 제어 + try-it-out-enabled: true + # filter 검색 + filter: true + operations-sorter: method + # ms 단위 표시 + display-request-duration: true + supported-submit-methods: GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH, TRACE + +# enabled: false +# query-config-enabled: false +# api-docs: +# enabled: false \ No newline at end of file