明明引入了Junit的依赖,为啥我写测试代码的时候用到的@Test注解爆红了。
<dependency>
<groupId>junitgroupId>
<artifactId>junitartifactId>
<version>4.13.2version>
<scope>testscope>
dependency>
Cannot resolve symbol 'Test'
截图看看,你的工程
检查有没有 导入 Test注解
import org.junit.Test;
如果导入了,再点这个试试