赞
踩
错误:“sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”。
url配置中增加trustServerCertificate=true即可
jdbc:sqlserver://192.168.0.0:1433;DatabaseName=dbname;trustServerCertificate=true
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。