Web.xml Webapp配置加载log4j和Spring
2016-08-08 17:27
423 查看
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>Momo</display-name> <context-param> <param-name>log4jConfigLocation</param-name> <param-value>/WEB-INF/conf/log4j.properties</param-value> </context-param> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/conf/applicationContext.xml </param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> </web-app>
相关文章推荐
- Web.xml Webapp配置加载log4j和Spring
- web.xml文件中配置(servlet, spring, filter, listenr)的加载顺序
- spring的配置文件在web.xml中加载的方式
- 服务器启动时Webapp的web.xml中配置的加载顺序
- Web项目中使用XML配置加载Spring及Spring MVC的组件
- 加载Spring的 Web.xml配置
- web.xml文件中配置(servlet, spring, filter, listenr)的加载顺序(一)
- web.xml文件中配置(servlet, spring, filter, listenr)的加载顺序研究
- Spring, Log4j, 等各项在web.xml中配置
- 通过web.xml中的监听器加载spring配置文件
- 通过web.xml文件自动启动spring容器加载对应的配置文件
- spring的配置文件在web.xml中加载的方式
- 服务器启动时Webapp的web.xml中配置的加载顺序(转载)
- 服务器启动时Webapp的web.xml中配置的加载顺序
- spring的配置文件在web.xml中加载的方式
- web.xml 配制加载spring上下文及 Spring context-param param-value classpath 配置加载问题
- web.xml文件中配置(servlet, spring, filter, listenr)的加载顺序 研究
- 服务器启动时Webapp的web.xml中配置的加载顺序
- web.xml文件中配置(servlet, spring, filter, listenr)的加载顺序 研究
- spring和struts2的web.Xml配置(spring的web加载)