Driver class not found

How to solve the problem of Driver class not found.

When I established a connection in the DB, the Driver JARs were obviously imported, but the display was not recognized.

The error is as follows:

First thought: My url configuration is wrong. It is true that he has been reporting my mistakes, but I have not written any wrong words and database names,

As shown in the figure:

I think it is because the driver is imported incorrectly and the display url configuration is incorrect. So I went to research why my 3rd party shelf package was not imported correctly.


Second thought:

Is it because the path of my imported shelf package is incorrect, there are Chinese characters, so I changed the location of the shelf package. Changed to the full English path. It didn't work at all.

And my shelf package is the latest version under the official website, which can be used when I don't write hibernate before. When connecting to jdbc.


Third thought: Solve the problem of why the import package is incorrect.

My steps are to copy in lib first, then add path. And I am hibernate, not involving tomcat.

to be solved.

update now


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324613134&siteId=291194637