行业知识
IDEA SpringBoot + Gradle无法运行测试问题
2026-11-28 15:44:34
来源:互联网转载
解决
()i. ���看 build.gradle 中是否配置了
tasks.named(‘test’) {
()useJUnitPlatform()
}
ii. 打开IDEA 设置 (Mac用户 Com + , 可快速打开 / Win用户 Ctrl + Alt + s)
检索Gradle 后,将Run tests using 选项 变更成 intelliJ IDEA 后 点击 Apply 再点击 OK
此时再回到 TestClass 执行测试方法
————————————————
上一篇:银行电脑操作教程
下一篇:群星闪耀服务器怎么开?