微信退款No appropriate protocol (protocol is disabled or cipher suites are inappropriate)问题解决
昨天下午测试突然提示说,退款报错了。
项目环境:OpenJDK11。
我查看了下日志,提示:No appropriate protocol (protocol is disabled or cipher suites are inappropriate)这个错误信息。
百度了下(不要问为什么不用谷歌)
有一大半都在骂微信支付的,剩下一半集合起来的答案就三个:
1、删除TSL协议
2、修改JDK版本
3、修改jre下的文件。
删除TSL协议。然并卵,该报错还是报错。没有一点用。
修改JDK版本。站在一个商业项目的角度来讲,这么随便换版本,到时候出问题那是没办法向组织交代的。
或许就会被交代在这里了。
修改jre下的文件。这个风险不亚于第二个。
思来想去,觉得应该还有办法解决的。看了下开源的包,下了一个对应的第三方开源包(不知道选哪个就看github的star)
发现binarywang的那个还不错,然后直接扒拉下来,调用,测试,验证通过,1个钟搞定。
项目地址:https://github.com/Wechat-Group/WxJava。有很多包,你可以根据自己需要的进行下载。
支付的maven依赖。用了4.1.0的最新版本。
<dependency> <groupId>com.github.binarywang</groupId><artifactId>weixin-java-pay</artifactId><version>4.1.0</version>
</dependency>
总结下:网上的答案只是一个方向,最终还要您自己去思考其中的可行性。
微信退款No appropriate protocol (protocol is disabled or cipher suites are inappropriate)问题解决相关推荐
- 微信退款 No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
目录 1. 直接更改微信支付提供的代码(推荐) 2. 查找匹配的 JDK/jre 环境 3. 直接修改 jre 中 java.security 的默认限制 提供给正在弄微信支付踩坑的你,赶快弄完去干其 ...
- 项目启动报错No appropriate protocol (protocol is disabled or cipher suites are inappropriate) 解决办法
错误描述: 项目启动报错 Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is di ...
- java 发送邮件No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
采用SSL进行发送邮件, properties.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocket ...
- No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
记一次问题: 报错: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cip ...
- https 请求是报错No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
No appropriate protocol (protocol is disabled or cipher suites are inappropriate) 解决方案: 修改JDK /usr/j ...
- 今天新拉取得项目启动报错:No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
今天新拉取得项目启动报错 Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is di ...
- 微信退款出现No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
出现这个问题是微信支付系统 和 JDK 或 jre 的不兼容,可以先修改代码然后,如果还是不行.再修改jdk. 修改调用微信接口的代码 // 把"TLSv1"修改为null. 修改 ...
- 微信支付 No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
- idea2022报错: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
这个问题是由于访问https访问不了,而http可以访问 搜索参考其他人的解决方案,报错依旧无法解决 突然想到是重新下的idea2022,想到了jdk(由于下载idea时版本要与jdk版本对应,否则无 ...
最新文章
- vm虚拟机下linux安装python_VM中安装linux系统,安装VS Code,搭建Python环境
- ATTCK矩阵 linux系统安全实践
- Spring AOP + AspectJ Annotation Example---reference
- poj2019(二维RMQ)
- IE报vuex requires a Promise polyfill in this browser问题解决
- torch.flatten()函数
- php 加七天减七天,php实战第七天_PHP教程
- python坐牢-为什么说炒股要保护好本金 ?
- zz -- QQ圈子感想
- java2组随机数的共通数_java随机数产生-指数分布 正态分布 等
- 谷歌浏览器开发调式工具文档
- mysql like in 组合_mysql like in 组合 黄小柔junior分手原因
- 安卓系统组态软件_力臻智合分布式组态软件安卓版解决方案
- Opera中的opera密码修改,半残了
- Spring事务管理
- Matlab系统辨识工具箱
- 协成 协成驱动方式 事件驱动
- 微信小程序红包 php,微信小程序发放红包+领取红包(PHP)
- 03 数据载入、存储及文件格式
- k8s---存储之Volumes配置管理