摘要: spring多配置文件加载在项目中会涉及到多个spring的配置文件,在我所接触的项目中,只用到了两种不同的方法进行配置,有其他好办法的,欢迎讨论。方法一:在web.xml文件中作如下配置:<context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xml</param-value></context-param 阅读全文
posted @ 2013-05-06 10:09 眉间尺之魂 阅读(309) 评论(0) 推荐(0) 编辑