Parsing applicationContext.xml renders a `java.lang.NoSuchMethodError`. Could this be caused by dependency issues?

后端 未结 2 1587
无人及你
无人及你 2021-01-18 06:56

I am invoking a test method (Junit) with an annotated application context (@ContextConfiguration(locations={\"classpath:applicationContext.xml\"})). The test fa

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 07:13

    As Jens and Xstian hinted, there was a problem with the version of some of the jars in my classpath. Problem solved by doing a mvn clean install -U. I tried that before posting this question, but sometimes it just does not seem to do the trick, while sometimes it does.

提交回复
热议问题