Web.xml Webapp配置加载log4j和Spring

来源:互联网 发布:ubuntu有哪些好的软件 编辑:程序博客网 时间:2024/06/05 06:36
<?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>
0 0
原创粉丝点击