spring 配置junit 启动时出现 ClassNotFound警告:
 
警告: Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable. java.lang.ClassNotFoundException: org.testng.annotations.BeforeTest
 
 
解决方法:
 
将eclipse自带的junit和org.hamcrest.core.jar复制到项目的WEB-INF/lib中,在buildpath中把eclipse自带的junit库移除掉即可

相关文章:

  • 2021-07-09
  • 2021-12-18
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2021-07-17
  • 2022-01-23
相关资源
相似解决方案