Closes gh-16299
pull/16278/head
Johnny Lim 6 years ago committed by Stephane Nicoll
parent 89f93b28d7
commit 40d0d6b113

@ -32,8 +32,8 @@ public class FlywayMigrationScriptMissingException extends RuntimeException {
FlywayMigrationScriptMissingException(List<String> locations) { FlywayMigrationScriptMissingException(List<String> locations) {
super(locations.isEmpty() ? "Migration script locations not configured" super(locations.isEmpty() ? "Migration script locations not configured"
: "Cannot find migrations location in: " + locations : "Cannot find migration scripts in: " + locations
+ " (please add migrations or check your Flyway configuration)"); + " (please add migration scripts or check your Flyway configuration)");
this.locations = new ArrayList<>(locations); this.locations = new ArrayList<>(locations);
} }

@ -209,7 +209,7 @@ public class FlywayAutoConfigurationTests {
assertThat(context).getFailure() assertThat(context).getFailure()
.isInstanceOf(BeanCreationException.class); .isInstanceOf(BeanCreationException.class);
assertThat(context).getFailure() assertThat(context).getFailure()
.hasMessageContaining("Cannot find migrations location in"); .hasMessageContaining("Cannot find migration scripts in");
}); });
} }

@ -770,7 +770,7 @@ apply to you (i.e. if you run your application from a container), consider exclu
devtools or set the `-Dspring.devtools.restart.enabled=false` system property. devtools or set the `-Dspring.devtools.restart.enabled=false` system property.
TIP: Flagging the dependency as optional in Maven or using a custom `developmentOnly` TIP: Flagging the dependency as optional in Maven or using a custom `developmentOnly`
configuration in Gradle (as shown above) is a best practice that prevents devtools from configuration in Gradle (as shown above) is a best practice that prevents devtools from
being transitively applied to other modules that use your project. being transitively applied to other modules that use your project.
TIP: Repackaged archives do not contain devtools by default. If you want to use a TIP: Repackaged archives do not contain devtools by default. If you want to use a

@ -75,7 +75,7 @@ import org.springframework.util.StringUtils;
* properties from well known file locations. By default properties will be loaded from * properties from well known file locations. By default properties will be loaded from
* 'application.properties' and/or 'application.yml' files in the following locations: * 'application.properties' and/or 'application.yml' files in the following locations:
* <ul> * <ul>
* <li>file:./config/:</li> * <li>file:./config/</li>
* <li>file:./</li> * <li>file:./</li>
* <li>classpath:config/</li> * <li>classpath:config/</li>
* <li>classpath:</li> * <li>classpath:</li>

Loading…
Cancel
Save