Give Right click on project
Another thing you can try that worked for me is to add the mysql connector jar directly to the folder. Of course change to your environment.
C:[YOUR PATH]\\apache-tomcat-8.5.24\\lib
mysql-connector-java-5.1.45.jar
In my case I fixed this issue as it was happening with tomcat7 7.0.56 on debian 8.11 and apparently this tomcat7 version has some beef with this debian. When I downgraded to tomcat7 7.0.28 this error got fixed since jar was everywhere and only tomcat7 could have been the reason for not getting loaded. I hope this helps someone else save the time that I lost debugging this one
This comment is posted up and is fine but between steaps 2 and 3 you have to do step 2.50. You just forgot to import jar files into project path.
Give Right click on project
properties
Library
mysql connector
from zip file
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.