From 81cc054e24d4e68356bbb8a23f7b0a17cc2bd9d2 Mon Sep 17 00:00:00 2001 From: zaneanan Date: Sun, 15 Mar 2026 00:05:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20properties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.properties | 5 ++--- src/main/resources/application-prod.properties | 5 ++--- src/main/resources/application.properties | 6 ++---- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index c9e0ec4..bb2c16c 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,14 +1,13 @@ -# ????? (????) spring.datasource.url=jdbc:postgresql://localhost:58677/temp spring.datasource.username=postgres spring.datasource.password=Zaneanan0101+ spring.datasource.driver-class-name=org.postgresql.Driver -# JPA ???????????????? (?????) +# JPA spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect -# Swagger?????????????? +# Swagger springdoc.api-docs.enabled=true springdoc.swagger-ui.enabled=true \ No newline at end of file diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index c54a777..b008099 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,12 +1,11 @@ -# ????? (???? - ????????????????) spring.datasource.url=jdbc:postgresql://localhost:58677/temp spring.datasource.username=postgres spring.datasource.password=Zaneanan0101+ -# JPA ??????????????????????????? +# JPA spring.jpa.hibernate.ddl-auto=none spring.jpa.show-sql=false -# Swagger?????????? API ??? (????????????) +# Swagger springdoc.api-docs.enabled=false springdoc.swagger-ui.enabled=false \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 75f5f19..756d20d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,15 +1,13 @@ -# ???? spring.application.name=bootTemplate server.port=51888 -# ?????? (????? dev??????? prod) spring.profiles.active=dev -# Log ?? (??????) +# Log logging.file.path=./logs logging.file.name=${logging.file.path}/application.log -# Swagger ?????? +# Swagger springdoc.swagger-ui.path=/swagger-ui.html springdoc.api-docs.path=/v3/api-docs springdoc.writer-with-default-pretty-printer=true \ No newline at end of file