Testing with Spring and Maven: applicationContext

前端 未结 9 1548
-上瘾入骨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 05:01

    your application context must be included in classpath and put * :

    @ContextConfiguration(locations = { "classpath:*/application-context.xml" })
    

提交回复
热议问题