mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Catch exception that's thrown on Java 11 and later
See gh-32034
This commit is contained in:
parent
37833753f8
commit
8e3346c24f
@ -267,7 +267,7 @@ public class FlywayAutoConfiguration {
|
||||
map.from(properties.isIgnorePendingMigrations()).to(configuration::ignorePendingMigrations);
|
||||
map.from(properties.isIgnoreFutureMigrations()).to(configuration::ignoreFutureMigrations);
|
||||
}
|
||||
catch (BootstrapMethodError ex) {
|
||||
catch (BootstrapMethodError | NoSuchMethodError ex) {
|
||||
// Flyway 9+
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user