我使用myeclipse(自带tomcat的)连接oracle10g的数据库。写了MyHtml.html 和 index.jsp两个文件。可是报

日期:2016-11-25 00:56:28 人气:1

我使用myeclipse(自带tomcat的)连接oracle10g的数据库。写了MyHtml.html 和 index.jsp两个文件。可是报

oracle的端口都是1521,不知道你改了没 Connection con=DriverManager.getConnectio("jdbc:oracle:thin:@localhost:1521:orcl","sys","sys"); 你试一下,你也没有写驱动包的位置 public static Connection getCon() { //下面
    A+
热门评论