diff --git a/spring-security-modules/spring-security-acl/src/main/resources/com.baeldung.acl.datasource.properties b/spring-security-modules/spring-security-acl/src/main/resources/com.baeldung.acl.datasource.properties index 40f1e6ef38..7a08528f2d 100644 --- a/spring-security-modules/spring-security-acl/src/main/resources/com.baeldung.acl.datasource.properties +++ b/spring-security-modules/spring-security-acl/src/main/resources/com.baeldung.acl.datasource.properties @@ -8,5 +8,5 @@ spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect spring.h2.console.path=/myconsole spring.h2.console.enabled=true spring.datasource.initialize=true -spring.datasource.schema=classpath:acl-schema.sql -spring.datasource.data=classpath:acl-data.sql \ No newline at end of file +spring.sql.init.schema-locations=classpath:acl-schema.sql +spring.sql.init.data-locations=classpath:acl-data.sql \ No newline at end of file diff --git a/spring-security-modules/spring-security-web-boot-2/src/main/resources/application-mysql.properties b/spring-security-modules/spring-security-web-boot-2/src/main/resources/application-mysql.properties index 568d0c5ca3..0b81b046fb 100644 --- a/spring-security-modules/spring-security-web-boot-2/src/main/resources/application-mysql.properties +++ b/spring-security-modules/spring-security-web-boot-2/src/main/resources/application-mysql.properties @@ -1,9 +1,8 @@ -spring.datasource.platform=mysql +spring.sql.init.platform=mysql spring.datasource.url=jdbc:mysql://localhost:3306/jdbc_authentication spring.datasource.username=root spring.datasource.password=pass -spring.datasource.initialization-mode=always +spring.sql.init.mode=always spring.jpa.hibernate.ddl-auto=none -spring.profiles.active=mysql diff --git a/spring-security-modules/spring-security-web-boot-2/src/main/resources/application-postgre.properties b/spring-security-modules/spring-security-web-boot-2/src/main/resources/application-postgre.properties index 69faece45e..e37aec231a 100644 --- a/spring-security-modules/spring-security-web-boot-2/src/main/resources/application-postgre.properties +++ b/spring-security-modules/spring-security-web-boot-2/src/main/resources/application-postgre.properties @@ -1,7 +1,7 @@ -spring.datasource.platform=postgre +spring.sql.init.platform=postgre spring.datasource.url=jdbc:postgresql://localhost:5432/jdbc_authentication spring.datasource.username=postgres spring.datasource.password=pass -spring.datasource.initialization-mode=always +spring.sql.init.mode=always spring.jpa.hibernate.ddl-auto=none