IDEA Spring-Boot无法使用@RunWith

我的解决方案:

1.检查IDEA的maven配置是否是安装maven地址

2.查看pom.xml的配置

3.File->Invalidate Caches/Restart 清除缓存重启

4.maven -> Reinport

以下是我的pom.xml配置


   org.springframework.boot
   spring-boot-starter-test
   test


   junit
   junit
   4.12
   test


   org.junit.jupiter
   junit-jupiter-api
   5.0.0


   org.testng
   testng
   7.0.0-beta4

你可能感兴趣的:(Spring-Boot)