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