本文主要是介绍weixin-java-pay 班纳睿记录,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
首先这是一个很方便的开源项目,涵盖啦微信相关接口处理的大部分应用
本次是记录一个开发中遇到的问题,在此版本三方包中 微信H5中
<dependency><groupId>com.github.binarywang</groupId><artifactId>weixin-java-pay</artifactId><version>3.2.4.B</version>
</dependency>
出现以下错误
com.thoughtworks.xstream.security.ForbiddenClassException: com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderResultat com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26)at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74)at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486)at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466)at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337)at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1328)at com.github.binarywang.wxpay.bean.result.BaseWxPayResult.fromXML(BaseWxPayResult.java:138)at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.unifiedOrder(BaseWxPayServiceImpl.java:391)at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.createOrder(BaseWxPayServiceImpl.java:305)at com.jgntech.rushbaby.service.impl.RechargeServiceImpl.addRecharge(RechargeServiceImpl.java:97)at com.jgntech.rushbaby.service.impl.RechargeServiceImpl$$FastClassBySpringCGLIB$$94eb3f45.invoke(<generated>)
这篇关于weixin-java-pay 班纳睿记录的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!