?? initservlet.java
字號:
package com.servlet;
import javax.servlet.*;
import javax.servlet.http.*;
import com.parser.*;
import com.db.StaticBean;
public class InitServlet
extends HttpServlet {
public void init(ServletConfig conf) throws ServletException {
super.init(conf);
ServletContext servletContext = conf.getServletContext();
System.out.print ( "\r\n\r\n Loading......please waiting for a few minutes......" ) ;
String config = conf.getInitParameter("configURI");
String path = servletContext.getRealPath(config);
new ConfigReader(path);
StaticBean sb = new StaticBean();
sb.init();
System.out.println("-----------------------權限初始化完成!-------------------------");
}
public static void main(String[] args)
{
//ConfigReader configReader = new ConfigReader("c:\\hg\\WEB-INF\\conf.xml");
new ConfigReader("c:\\hg\\WEB-INF\\conf.xml");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -