使用 pom.xml <!-- spring boot中不需要指定版本--> <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId>