原文地址

JDBC driver : mssql-jdbc-10.2.0.jre11.jar链接AZURE云数据库时出现以下错误:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

在这里插入图片描述

解决方案就是将设置连接字符串trustServerCertificate=true
在这里插入图片描述

Logo

开放原子旋武开源社区(简称“旋武社区”)是由开放原子开源基金会孵化及运营的技术社区,致力于在中国推广和发展Rust编程语言生态,推动Rust在操作系统、终端设备、安全技术、基础软件等关键领域的产业落地,构建安全、可靠、高效的软件基础设施。

更多推荐