先找到idea的安装位置,进入lib文件夹

然后打开idea,File -> Project Structure。选择Project Settings中的Libraries,点击如图“+”号。
IDEA使用JUnit时@Test无效以及无法导入org.junit包的一系列问题

IDEA使用JUnit时@Test无效以及无法导入org.junit包的一系列问题

然后添加以下两个包
IDEA使用JUnit时@Test无效以及无法导入org.junit包的一系列问题
IDEA使用JUnit时@Test无效以及无法导入org.junit包的一系列问题
点击OK,添加成功就可以了

https://blog.csdn.net/danmo_wuhen/article/details/104117243感谢大佬分享

相关文章:

  • 2021-04-04
  • 2021-08-26
  • 2021-11-17
  • 2021-07-18
  • 2022-12-23
  • 2022-01-07
  • 2022-01-22
猜你喜欢
  • 2021-05-19
  • 2022-01-02
  • 2021-06-25
  • 2021-08-10
  • 2021-10-12
  • 2021-06-16
  • 2021-05-19
相关资源
相似解决方案