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

 web.xml中只用配以下内容

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

posted on 2023-04-19 14:15  多看多记多写  阅读(83)  评论(0)    收藏  举报