javax.mail 邮件发送报错 No appropriate protocol
报错信息:javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)错误原因:jdk版本过高,1.8_131版本无此错误,1.8_301有此错误解决方案一把javax.mail的包换成com.sun.mail<dep
·
报错信息:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
错误原因:jdk版本过高,1.8_131版本无此错误,1.8_301有此错误
解决方案一
把javax.mail的包换成com.sun.mail
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
解决方案二(不推荐)
打开java安装路径->jre/lib/security
然后编辑java.security文件,把SSLv3跟TSL开头的都删掉,然后重启一下服务,应该就可以了
更多推荐
已为社区贡献1条内容
所有评论(0)