摘要:
一、Spring如何使用多个xml配置文件 1、在web.xml中定义contextConfigLocation参数,Spring会使用这个参数去加载所有逗号分隔的xml文件,如果没有这个参数,Spring默认加载web-inf/applicationContext.xml文件。 例如: conte 阅读全文
posted @ 2019-10-13 21:44
銀色飞行船
阅读(200)
评论(0)
推荐(0)
摘要:
<context-param>的作用: web.xml的配置中<context-param>配置作用 1. 启动一个WEB项目的时候,容器(如:Tomcat)会去读它的配置文件web.xml.读两个节点: <listener></listener> 和 <context-param></contex 阅读全文
posted @ 2019-10-13 21:18
銀色飞行船
阅读(181)
评论(0)
推荐(0)

浙公网安备 33010602011771号