父项目中有
junit junit 4.12 test子项目中有
org.springframework spring-test 5.3.13而使用注解@RunWith和@Test报红我的理解是没有引入到父项目的依赖,所以我的解决办法是加
Com.Ren SpringExercise02 1.0-SNAPSHOT当然也可以在子项目中重新添加依赖