Skip to content

Commit c4b7ac5

Browse files
Update application.properties to environment variables
1 parent 79db595 commit c4b7ac5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
2-
spring.datasource.url = jdbc:mysql://localhost:3306/notes_app?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false
3-
spring.datasource.username = root
4-
spring.datasource.password = callicoder
5-
2+
spring.datasource.url=${DB_CONNECTION_STRING}
3+
spring.datasource.username=${DB_USER}
4+
spring.datasource.password=${DB_PASS}
5+
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
66

77
## Hibernate Properties
88

99
# The SQL dialect makes Hibernate generate better SQL for the chosen database
10-
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
10+
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
1111

1212
# Hibernate ddl auto (create, create-drop, validate, update)
13-
spring.jpa.hibernate.ddl-auto = update
13+
spring.jpa.hibernate.ddl-auto=update

0 commit comments

Comments
 (0)