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?

Menu