Testing with Spring and Maven: applicationContext

前端 未结 9 1577
-上瘾入骨i
-上瘾入骨i 2020-12-13 04:04

Seems that question old as world, but I still can\'t find out the solution..

I\'m trying to run simple test:

@RunWith(SpringJUnit4ClassRunner.class)
         


        
9条回答
  •  忘掉有多难
    2020-12-13 04:49

    I had the same problem, all files were successfully copied to target/classes and target/test-classes, still spring could not find them.

    Problem disappeared when I explicitly specified versions for maven-surefire-plugin and maven-resources-plugin in pom

提交回复
热议问题