import org.junit.jupiter.api.Test和import org.springframework.boot.test.context.SpringBootTest报错
最新推荐文章于 2023-12-29 19:35:36 发布
在创建新的Spring项目时,遇到使用`@Test`和`@SpringBootTest`报错的问题。错误源于IDEA未下载对应jar包。解决方法包括在pom.xml添加依赖,手动将缺失的jar包下载到Maven本地仓库,以及通过MAVEN中央仓库获取jar。执行Build Project后,问题通常可得到解决。
摘要由CSDN通过智能技术生成