How to install JDBC driver in Eclipse web project without facing java.lang.ClassNotFoundexception

后端 未结 13 3041
梦毁少年i
梦毁少年i 2020-11-21 11:36

There is a VERY similar question to mine but in my case I don\'t have any duplicate jars in my build path, so the solution does not work for me. I\'ve searched google for a

13条回答
  •  耶瑟儿~
    2020-11-21 12:02

    assuming your project is maven based, add it to your POM:

        
            mysql
            mysql-connector-java
            5.1.26
        
    

    Save > Build > and test connection again. It works! Your actual mysql java connector version may vary.

提交回复
热议问题