环境:1.8.0_181
1.8.0_181 改进对Ldap的支持,点击查看JDK官网介绍
执行程序出现错误java.security.cert.CertificateException: No subject alternative DNS name matching <hostname> found,需要在应用启动时添加参数-Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true禁用端点识别算法,或者在应用启动时代码中设置系统属性System.setProperty("com.sun.jndi.ldap.object.disableEndpointIdentification", "true");