diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaProperties.java index a5b1b3347d..0507663b9f 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaProperties.java @@ -21,8 +21,8 @@ import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.function.Supplier; -import javax.inject.Provider; import javax.sql.DataSource; import org.hibernate.boot.model.naming.ImplicitNamingStrategy; @@ -244,7 +244,7 @@ public class JpaProperties { } private String determineDdlAuto(Map existing, - Provider defaultDdlAuto) { + Supplier defaultDdlAuto) { if (!existing.containsKey("hibernate.hbm2ddl.auto")) { String ddlAuto = (this.ddlAuto != null ? this.ddlAuto : defaultDdlAuto.get());