From 51ae2aa941c6c0d3a6ae6d7b2a52c5e34a4ae640 Mon Sep 17 00:00:00 2001 From: choubung Date: Tue, 18 Nov 2025 13:54:13 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20application.propertise=20=EB=B0=B0?= =?UTF-8?q?=ED=8F=AC=EC=9A=A9=EA=B3=BC=20=EA=B0=9C=EB=B0=9C=EC=9A=A9=20?= =?UTF-8?q?=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-prod.properties | 12 ++++++++++++ src/main/resources/application.properties | 16 ++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/application-prod.properties diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties new file mode 100644 index 0000000..0aa807d --- /dev/null +++ b/src/main/resources/application-prod.properties @@ -0,0 +1,12 @@ +spring.datasource.url=${DB_URL} +spring.datasource.username=${DB_USERNAME} +spring.datasource.password=${DB_PASSWORD} +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver + +# --- ???? JPA (Hibernate) --- +spring.jpa.hibernate.ddl-auto=validate +spring.jpa.show-sql=false +spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect + +# --- ???? H2 ?? --- +spring.h2.console.enabled=false \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index eb71436..4e89e04 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,14 +1,18 @@ spring.application.name=openMission spring.profiles.include=oauth -server.port=${PORT:9090} -spring.datasource.url=${DB_URL:jdbc:h2:./mydb;AUTO_SERVER=TRUE} -spring.datasource.username=${DB_USERNAME:sa} -spring.datasource.password=${DB_PASSWORD:} +# --- ?? H2 Datasource --- +spring.datasource.url=jdbc:h2:./mydb;AUTO_SERVER=TRUE +spring.datasource.driver-class-name=org.h2.Driver +spring.datasource.username=sa +spring.datasource.password= -# JPA (Hibernate) +# --- ?? JPA (Hibernate) --- spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true -# H2 +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect + +# --- ?? H2 ?? --- spring.h2.console.enabled=false +spring.h2.console.path=/h2-console \ No newline at end of file