方法一: 通过idea 工具实现,点击右上角闪电图标, 看到test被划掉, 再打包就会跳过test测试. 方法二: spring-boot-maven-plugin插件已经集成了maven-surefire-plugin插件 在pom.xml添加配置 相关文章: 2022-12-23 2022-12-23 2022-01-28 2022-12-23 2022-12-23 2021-09-11 2022-12-23 2021-12-25