1 Star 0 Fork 0

lleonhardt / Artical_AcFun

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.jsp 674 Bytes
一键复制 编辑 原始数据 按行查看 历史
lleonhardt 提交于 2016-12-07 11:50 . 新建 index.jsp
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="java.sql.*" %>
<HTML>
<BODY>
<%
String driver="com.mysql.jdbc.Driver";
String url="jdbc:mysql://localhost:3306";
String userid="root"; // 用户
String passwd="mysql"; // 密码
try{
Class.forName(driver);
}
catch(Exception e){
out.println(driver + ":make sure your JDBC in lib dir");
e.printStackTrace();
}
try {
Connection con=DriverManager.getConnection(url,userid,passwd);
if(!con.isClosed())
out.println(" nail it!");
con.close();
}
catch(SQLException SQLe){
out.println(" damn !");
}
%>
<ul>
<li><a href="web.jsp">web.jsp</a></li>
</ul>
</BODY>
</HTML>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/lleonhardt/Artical_AcFun.git
git@gitee.com:lleonhardt/Artical_AcFun.git
lleonhardt
Artical_AcFun
Artical_AcFun
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891