java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver : Am I loading the right driver?

后端 未结 1 1608
[愿得一人]
[愿得一人] 2020-12-11 09:53

When I run the following snippet to connect to datasource to get the data out through queries :

        try {
        String driver = \"com.microsoft.jdbc.sq         


        
相关标签:
1条回答
  • 2020-12-11 10:44

    Having database defined and Class.forName(driver); is not enough.

    You need to make sure appropriate database driver jar is in classpath.

    0 讨论(0)
提交回复
热议问题