Home > Database > Mysql Tutorial > java-jsp中连接mysql数据库失败

java-jsp中连接mysql数据库失败

WBOY
Release: 2016-06-06 09:38:29
Original
1364 people have browsed it

mysqljavajsp数据库

问题出在Class.forName("com.mysql.jdbc.Driver") 错误提示:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver。
但是我已经在工程下添加了驱动包了,也在build path中导入了,而且在java文件测试时
一切都是正常的,但是放到JSP页面里出了问题:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template