若出现java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver错误
可能是
1,file-project structure-modules
没有添加mssql-jdbc-7.2.1.jre8.jar
(c:\users\lenovo.intellijidea2017.2\config\jdbc-drivers\sql server\7.2.1)
2,项目->web->WEB-INF->lib
中没有粘贴这个jar包
mssql-jdbc-7.2.1.jre8.jar
(c:\users\lenovo.intellijidea2017.2\config\jdbc-drivers\sql server\7.2.1)
IDEA连接SQL Server注意事项
最新推荐文章于 2024-04-07 14:12:00 发布