问题描述:
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed:
解决办法:
在SQL Server的URL连接语句中添:encrypt=true;trustServerCertificate=true;
完整URL如下:
connection.url="jdbc:sqlserver://localhost:1433;DatabaseName=[];user=[xx];password=[xxxx];encrypt=true;trustServerCertificate=true;"