JAVA No suitable driver found for jdbc:microsoft:sqlserver://localhost:1433/xxxxxx 解决办法
来源:互联网 发布:淘宝卖什么东西最赚钱 编辑:程序博客网 时间:2024/06/04 18:13
我是初学者,不喜勿喷;
第一次使用spring框架连接sqlserver 2008 R2时出现了No suitable driver found for jdbc:microsoft:sqlserver://localhost:1433/xxxxxx,在网上找了很多的方法,(http://blog.csdn.net/cwx01perfect/article/details/7688702这个给我的启示很大),不知道有没有发现我的比他的(这是他写的:jdbc:sqlserver://localhost:1368;DatabaseName=gdut_lib;SelectMethod=Curs)多了一个“microsoft”;后来我去掉了这个就连接成功;对于这个问题的解决方案可能还有其它的;
另外还要注意的一些地方:
1.需要添加sqljdbc4.jar 或者sqljdbc.jar(听说不能两个同时加,我只加了sqljdbc4.jar)下载地址:http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774
问题的根本原因我还不知道,如果有知道请多多指教。
2 0
- JAVA No suitable driver found for jdbc:microsoft:sqlserver://localhost:1433/xxxxxx 解决办法
- java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost:1433;databaseName
- java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver://127.0.0.1:1433;解决
- java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver://127.0.0.1:1433
- No suitable driver found for jdbc:sqlserver://localhost:1433;DatabaseName=pi
- Hibernate插件出现错误 java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver
- No suitable driver found for jdbc:mysql://localhost:3306/ 问题
- No suitable driver found for jdbc:mysql://localhost:3306/stu_mis
- no suitable driver found for jdbc:mysql//localhost:3306/..
- No suitable driver found for jdbc:mysql://localhost:3306/ 问题
- no suitable driver found for jdbc:mysql//localhost:3306/..
- No suitable driver found for jdbc:mysql://localhost:3306/****
- No suitable driver found for jdbc:mysql://localhost/shop
- No suitable driver found for jdbc:mysql://localhost:3306/test
- SQLException:No suitable driver found for jdbc:myqsl://localhost/......
- No suitable driver found for jdbc:mysql://localhost:3306/shop_01
- no suitable driver found for jdbc:mysql//localhost:3306/..
- No suitable driver found for jdbc:mysql://localhost/mysql
- g729源码分析-7-增益量化
- Windows Server2008R2、2012R2重置系统开机登陆密码
- g729源码分析-8-内存更新打包
- g729源码分析-9-g729-解码
- 用 css 美化滚动条
- JAVA No suitable driver found for jdbc:microsoft:sqlserver://localhost:1433/xxxxxx 解决办法
- 事件委托
- Windows8.1 64位 安装 Ruby Sass Compass
- ZooKeeper Quota's Guide
- thinkphp缓存设置
- cocos2d-x集成友盟消息推送SDK(ios版)
- iOS 检测版本更新
- g729源码分析-10-后置滤波处理(一)
- sdk manager无内容