spring 3.2.2 tomcat7
我是显式指定配置文件的
<?xml version="1.0" encoding="UTF-8"?>
springmvcBase
<!-- springMVC -->
springMVC
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:/config/spring/springMVC-servlet.xml
1
springMVC
/*
<!-- spring security -->
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
springSecurityFilterChain
/*
<!-- spring ioc -->
contextConfigLocation
classpath*:/config/spring/applicationContext*.xml
org.springframework.web.context.ContextLoaderListener
tomcat启动时报错
java.lang.NoSuchMethodError: org.springframework.web.context.support.WebApplicationContextUtils.initServletPropertySources(Lorg/springframework/core/env/MutablePropertySources;Ljavax/servlet/ServletContext;Ljavax/servlet/ServletConfig;)V
如果将mvc的配置部分注释掉则不出错。
这个问题如何解决呢?spring ioc的配置文件是多个的
怀疑你的spring web部分的jar包有冲突
1、检查下有没有冲突
2、贴下jar包列表