From 95a9f36ac1121ed68e9f0eb6ae0ccc4657449603 Mon Sep 17 00:00:00 2001 From: zuisong <378818573@qq.com> Date: Sun, 18 Apr 2021 01:37:03 +0800 Subject: [PATCH] Fix wrong replacements for spring.datasource.[schema|data] See gh-26150 --- .../boot/autoconfigure/jdbc/DataSourceProperties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceProperties.java index 956e605d61..75b6110357 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceProperties.java @@ -414,7 +414,7 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB } @Deprecated - @DeprecatedConfigurationProperty(replacement = "spring.sql.init.ddlScriptLocations") + @DeprecatedConfigurationProperty(replacement = "spring.sql.init.schema-locations") public List getSchema() { return this.schema; } @@ -447,7 +447,7 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB } @Deprecated - @DeprecatedConfigurationProperty(replacement = "spring.sql.init.dmlScriptLocations") + @DeprecatedConfigurationProperty(replacement = "spring.sql.init.data-locations") public List getData() { return this.data; }