解决maven项目中junit报class not found错误

原因:报这个错误是因为项目的target目录下没有生成测试类,因为在maven项目里要运行Junit,必须在target/test-classes找到对应的编译类

解决:右键pom文件,runAs--->mavenTest

猜你喜欢

转载自blog.csdn.net/weixin_38497513/article/details/81260266