Skip to content

Commit

Permalink
Replace deprecated property 'spring.datasource.initialize' with 'spri…
Browse files Browse the repository at this point in the history
…ng.datasource.initialization-mode'
  • Loading branch information
Martin Ponbauer committed Feb 6, 2021
1 parent 9da75e0 commit 264e768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/application-mysql.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# uncomment for init database (first start)
#spring.datasource.initialize=true
#spring.datasource.initialization-mode=always
#spring.datasource.schema=classpath*:db/mysql/initDB.sql
#spring.datasource.data=classpath*:db/mysql/populateDB.sql

Expand All @@ -13,4 +13,4 @@ spring.jpa.database=MYSQL
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.jpa.hibernate.ddl-auto=none
#----------------------------------------------------------------
# MySQL config end
# MySQL config end
4 changes: 2 additions & 2 deletions src/main/resources/application-postgresql.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# uncomment for init database (first start)
#spring.datasource.initialize=true
#spring.datasource.initialization-mode=always
#spring.datasource.schema=classpath*:db/postgresql/initDB.sql
#spring.datasource.data=classpath*:db/postgresql/populateDB.sql

Expand All @@ -13,4 +13,4 @@ spring.jpa.database=POSTGRESQL
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=none
#----------------------------------------------------------------
# PostgreSQL config end
# PostgreSQL config end

0 comments on commit 264e768

Please sign in to comment.