spring使用ContextLoaderListener和web.xml动态加载配置文件

web.xml中只用配以下内容

不用在web.xml中显示的配置applicationContext.xml,同时也不要配置org.springframework.web.context.ContextLoaderListener,因为会跟自定义的配置重复

web.xml中只用配以下内容

不用在web.xml中显示的配置applicationContext.xml,同时也不要配置org.springframework.web.context.ContextLoaderListener,因为会跟自定义的配置重复