使用Spring boot Mybatis 访问SqlServer时遇到下面的问题:
PKIX path building failed - unable to find valid certification path to requested target
查了很多方案,最后在这篇文章中找到绕过这个问题的办法:https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building-failed-unable-to-find-valid-certification/ba-p/2591304
问题出在Java认证存储上,绕过这个问题的办法是在连接字符串中增加trustServerCertificate=true
网友评论