JAVA EE
the_GUA
路漫漫其修远兮,吾将上下而求索
展开
-
JDBC java连接mysql数据库
String url = "jdbc:mysql://localhost:3306/jdbc_db"; String user = "root"; String pwd = "root"; Connection conn = null; Statement st = null; try { // 1.加载驱动 ...原创 2019-07-08 22:31:25 · 107 阅读 · 0 评论 -
HttpServlet的方法概述
@Override //当每请求的时候就会调用这个方法 //当写了service方法以后,就不会调用doget和dopost protected void service(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { // TODO Auto-...原创 2019-07-08 22:39:02 · 696 阅读 · 0 评论