From 264e768433cfc052be50a0c5d2d193d48e3b3e0a Mon Sep 17 00:00:00 2001 From: Martin Ponbauer Date: Sat, 6 Feb 2021 16:11:18 +0100 Subject: [PATCH] Replace deprecated property 'spring.datasource.initialize' with 'spring.datasource.initialization-mode' --- src/main/resources/application-mysql.properties | 4 ++-- src/main/resources/application-postgresql.properties | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application-mysql.properties b/src/main/resources/application-mysql.properties index a04cbe4fc..d429b5ac1 100644 --- a/src/main/resources/application-mysql.properties +++ b/src/main/resources/application-mysql.properties @@ -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 @@ -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 \ No newline at end of file +# MySQL config end diff --git a/src/main/resources/application-postgresql.properties b/src/main/resources/application-postgresql.properties index 799a7db14..ba933e5d5 100644 --- a/src/main/resources/application-postgresql.properties +++ b/src/main/resources/application-postgresql.properties @@ -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 @@ -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 \ No newline at end of file +# PostgreSQL config end