/*
* Log4jInitServlet.java
* Create Version: 1.0.0
* Author: DongJian
* Create Date: 2008-11-01
*/
package log4j;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
/**
* Log4jInitServlet - Log4jInitServlet.java
* ----------------------------------------------
* @version 0.1 2008-11-01
* @author DongJian
* ----------------------------------------------
* 说明:
* LOG4J初始化
*/
public class Log4jInitServlet extends HttpServlet {
private Logger logger = Logger.getLogger(Log4jInitServlet.class);
public void service(ServletRequest req, ServletResponse resp)
throws ServletException, IOException {
}
public void init() throws ServletException {
System.setProperty("webappRoot", getServletContext().getRealPath("/"));
PropertyConfigurator.configure(getServletContext().getRealPath("/") +
getInitParameter("configfile"));
logger.info("LOG4初始化完成");
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
struts2+spring+ibatis整合,简单图书管理
共31个文件
xml:8个
class:7个
java:7个
需积分: 4 13 下载量 45 浏览量
2010-02-24
11:25:40
上传
评论
收藏 16KB RAR 举报
温馨提示
struts2+spring+ibatis整合,简单图书管理dddddddddddddddddddddddddddddddddddd
资源推荐
资源详情
资源评论
收起资源包目录
STRUTS2+SPRING+IBATIS.rar (31个子文件)
SSI
.project 1005B
.mymetadata 282B
WebRoot
WEB-INF
web.xml 1KB
db-context.xml 1KB
SqlMapConfig.xml 266B
bean-context.xml 1KB
lib
classes
log4j.properties 645B
struts.properties 73B
com
dj
dao
TestDao.class 145B
impl
TestDaoImpl.class 1KB
test
action
TestAction.class 1KB
service
impl
TestServiceImpl.class 935B
TestService.class 160B
model
RoomInfo.xml 553B
RoomInfo.class 753B
struts.xml 1KB
log4j
Log4jInitServlet.class 2KB
index.jsp 725B
META-INF
MANIFEST.MF 39B
.myeclipse
src
log4j.properties 645B
struts.properties 73B
com
dj
dao
TestDao.java 120B
impl
TestDaoImpl.java 594B
test
action
TestAction.java 736B
service
TestService.java 136B
impl
TestServiceImpl.java 475B
model
RoomInfo.xml 553B
RoomInfo.java 421B
struts.xml 1KB
log4j
Log4jInitServlet.java 1KB
.classpath 4KB
共 31 条
- 1
资源评论
sunboychenll
- 粉丝: 7
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功