新手小白初开发项目,遇到的问题太多太多了.....
ClassNotFoundException:junit.runner.RunWith解决方法:
1.
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
改成:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
2.检查junit版本,一个项目的所有pom文件的版本应保持一致,用4以上版本。