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