web config
共 2 篇文章
Log4j的配置(xml and properties)
properties形式: 用到的包就是spring.jar和log4j.jar了,首先要配置的是web.xml,需要增加以下几项内容: log4j参数: <context-param> <param-name>log4jConfigLocation</param-name> <param-value>/WEB-INF/log4j.properties</param-value> </context-param> <context-param> <param-name>log4jRefreshInterval</param-name> <param-value>5000</param-val…
2011-11-16 16:07 · web config · XML · log4j · properties
web.xml元素介绍
web.xml元素介绍 web.xml首先是肯定要包含它的schema. <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> </web-app> 其它的元素都放在<web-app></web-app>之中。 <discription></discription> 是对站台的…
2011-10-11 17:48 · web config · Tomcat · role · web.xml · context-param