diff --git a/.gitignore b/.gitignore index cf851a2..e48b6be 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,4 @@ out/ /.nb-gradle/ ### VS Code ### -.vscode/ - -application-db.properties +.vscode/ \ No newline at end of file diff --git a/src/main/resources/application-db.properties b/src/main/resources/application-db.properties new file mode 100644 index 0000000..1a2cded --- /dev/null +++ b/src/main/resources/application-db.properties @@ -0,0 +1,11 @@ +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.jpa.hibernate.ddl-auto=create + +# Remote DB +spring.datasource.url=${DB_ENDPOINT} +spring.datasource.username=${DB_USERNAME} +spring.datasource.password=${DB_PASSWORD} + +spring.jpa.show-sql=true +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect +spring.jpa.properties.hibernate.format_sql=true