nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error updating database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: 该驱动程序不支持 SQL Server 8 版。 ClientConnectionId:963413c6-4a36-44fd-a152-fda692306ea9\r\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: 该驱动程序不支持 SQL Server 8 版。 ClientConnectionId:963413c6-4a36-44fd-a152-fda692306ea9
原因:服务器使用的SQLServer 2000版本
解决办法:
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
<version>1.3.1</version>
</dependency>
application.yml文件:
spring:
datasource:
url: jdbc:jtds:sqlserver://localhost:1433/你的数据库名
username: sa
password: 123
driver-class-name: net.sourceforge.jtds.jdbc.Driver
hikari:
connection-test-query: SELECT 1

3087

被折叠的 条评论
为什么被折叠?



