【发布时间】:2017-05-25 10:52:10
【问题描述】:
当我在 tomcat 7.0.63 下运行 webapp 时得到这个日志:
[localhost-startStop-1] 错误 org.springframework.web.context.ContextLoader - 上下文初始化失败 java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableListableBeanFactory.clearMetadataCache()V 在 org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:185) 在 org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:673) 在 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:519)
当我部署它时,这个 webapp 运行良好,只是在 eclipse 中使用经典选项导出战争。 但是当我以多模块方式使用 maven 构建时。我在执行时遇到了上述错误。 谁能给我一些提示或方向来解决这个问题?
使用的 Spring 版本是 4.2.0.RELEASE。
我不使用 Spring Boot。
【问题讨论】:
-
你能告诉我们你的
pom.xml吗?
标签: java spring maven spring-mvc maven-3