springboot 连接sqlserver2008
报错:“驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全”
!-- <dependency>-->
<!-- <groupId>com.microsoft.sqlserver</groupId>-->
<!-- <artifactId>mssql-jdbc</artifactId>-->
<!-- <version>10.2.0.jre17</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.microsoft.sqlserver</groupId>-->
<!-- <artifactId>sqljdbc4</artifactId>-->
<!-- <version>4.0</version>-->
<!-- </dependency>-->
后面换了jtds连接成功了
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
<version>1.3.1</version>
</dependency>
application.yml配置,hikari要配置connection-test-query

最低0.47元/天 解锁文章
2万+

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



