tomcat连接mysql求助# Java - 爪哇娇娃
w*o
1 楼
本人完全新手,有一门课的作业要用到这个。
我已经配置好了tomcat 7.0.16和jdk1.6.0_26。
也配置好了mysql。
下载了mysql-connector-java-5.1.16。按照网上的教程,把mysql-connector-java-5.
1.16-bin.jar 放到了 tomcat的lib下面。
然后用mysql创建了database和table,
但是按照教程在tomcat\Root下面创建了test.jsp,然后再浏览器中打开http://localhost:8080/test.jsp总是显示http错误。
请问大家该这么做呢?
试了好多网上的教程多不对,然后我java基本上也是空白,刚刚开始学。
请教达人有教程,或是这点该从哪入手?多谢各位。
我已经配置好了tomcat 7.0.16和jdk1.6.0_26。
也配置好了mysql。
下载了mysql-connector-java-5.1.16。按照网上的教程,把mysql-connector-java-5.
1.16-bin.jar 放到了 tomcat的lib下面。
然后用mysql创建了database和table,
但是按照教程在tomcat\Root下面创建了test.jsp,然后再浏览器中打开http://localhost:8080/test.jsp总是显示http错误。
请问大家该这么做呢?
试了好多网上的教程多不对,然后我java基本上也是空白,刚刚开始学。
请教达人有教程,或是这点该从哪入手?多谢各位。