Class.forname () throws ClassNotFoundException

Jump to the second arrow when executing to the first arrow. The imported jdbc is fine because you can output the console information of the connection

clipboard.png


servletClassNotFoundException?

clipboard.png


clipboard.png

Mar.05,2021

jar is imported incorrectly. Copy the jar to the lib directory under WEB-INF, right-click add to build path, to the webapps directory under the tomcat directory to check whether the jar package is in the lib directory whose project is WEB-INF. If not, you can copy it into it.


where do you put your database jar package?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b335df-2be6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b335df-2be6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?