From 7e174024bc163dddb36e15fb39a11aa3aaae9a7f Mon Sep 17 00:00:00 2001 From: bjkim Date: Tue, 12 Aug 2025 12:02:33 +0900 Subject: [PATCH] =?UTF-8?q?[ADD]=20SWAGGER=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-local.properties | 5 +++++ src/main/resources/application-prod.properties | 7 +++++++ src/main/resources/application.properties | 11 +++++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/main/resources/application-local.properties create mode 100644 src/main/resources/application-prod.properties diff --git a/src/main/resources/application-local.properties b/src/main/resources/application-local.properties new file mode 100644 index 0000000..fc4a53c --- /dev/null +++ b/src/main/resources/application-local.properties @@ -0,0 +1,5 @@ +springdoc.swagger-ui.path=/swagger-ui +springdoc.swagger-ui.config-url=/v3/api-docs/swagger-config +springdoc.swagger-ui.url=/v3/api-docs +springdoc.swagger-ui.doc-expansion=none +springdoc.swagger-ui.disable-swagger-default-url=true diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties new file mode 100644 index 0000000..1f70e49 --- /dev/null +++ b/src/main/resources/application-prod.properties @@ -0,0 +1,7 @@ +server.servlet.context-path=/autoflow-server-mgmt + +springdoc.swagger-ui.path=/swagger-ui +springdoc.swagger-ui.config-url=/autoflow-server-mgmt/v3/api-docs/swagger-config +springdoc.swagger-ui.url=/autoflow-server-mgmt/v3/api-docs +springdoc.swagger-ui.doc-expansion=none +springdoc.swagger-ui.disable-swagger-default-url=true diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 482386f..514f008 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,6 +1,9 @@ #????? ?? ?? server.port = 80 +spring.profiles.active=local + + spring.datasource.url=jdbc:mariadb://192.168.10.143:3306/autoflow spring.datasource.username=cuuva spring.datasource.password=cuuva @@ -41,3 +44,11 @@ spring.datasource.hikari.connection-timeout=3000 spring.datasource.hikari.idle-timeout=0 spring.datasource.hikari.max-lifetime=170000 +springdoc.api-docs.enabled=true +springdoc.api-docs.path=/v3/api-docs + +springdoc.swagger-ui.path=/swagger-ui +springdoc.swagger-ui.config-url=/autoflow-server-mgmt/v3/api-docs/swagger-config +springdoc.swagger-ui.url=/autoflow-server-mgmt/v3/api-docs +springdoc.swagger-ui.doc-expansion=none +springdoc.swagger-ui.disable-swagger-default-url=true