⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initservlet.java

📁 这是一个大学生论文管理系统,采用JSP语言进行开发
💻 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 + -