赞
踩
如果后续的报错信息为:unable to find valid certification path to requested target。
且原sqlserver配置代码如下:
datasource:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://localhost:1433;DatabaseName=dbname;
username: xxx
password: xxx
则可尝试添加如下语句解决问题
TrustServerCertificate=true;
具体如下:
datasource:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://localhost:1433;DatabaseName=dbname;TrustServerCertificate=true;
username: xxx
password: xxx
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。