dbprop.java
来自「这是一个连接数据库的类」· Java 代码 · 共 36 行
JAVA
36 行
package connect;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;public class DBProp extends HttpServlet { public DBProp() { super(); } /** * Destruction of the servlet. <br> * // */ public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * Initialization of the servlet. <br> * * @throws ServletException if an error occurs */ public void init() throws ServletException { // Put your code here try { Class.forName("connect.DBConst").newInstance(); } catch (Exception e) { e.printStackTrace(); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?