diff --git a/.gitignore b/.gitignore index 8989af1fc4..29b287eb60 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,6 @@ manifest.yml MANIFEST.MF settings.xml activemq-data +overridedb.* *.iml .idea diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java index a6483cc229..330a75cf63 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java @@ -59,6 +59,9 @@ public class BatchDatabaseInitializer implements EnvironmentAware { if ("hsql".equals(platform)) { platform = "hsqldb"; } + if ("postgres".equals(platform)) { + platform = "postgresql"; + } ResourceDatabasePopulator populator = new ResourceDatabasePopulator(); String schemaLocation = this.environment.getProperty("schema", DEFAULT_SCHEMA_LOCATION);