摘要: 格式定义: [html] view plaincopy <context-param> <param-name>contextConfigLocation</param-name> <param-value>contextConfigLocationValue></param-value> </co 阅读全文
posted @ 2017-04-17 14:18 tian830937 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 在实际项目中spring的配置文件applicationcontext.xml是通过spring提供的加载机制,自动加载的容器中去,在web项目中,配置文件加载到web容器中进行解析,目前,spring提供了两种加载器,以供web容器的加载:一种是ContextLoaderListener,另一种是 阅读全文
posted @ 2017-04-17 11:40 tian830937 阅读(218) 评论(0) 推荐(0) 编辑