请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

attempting to apply AttributeConverter 异常

老师,你好:
asyncConstructCouponByTemplate 方法实现中
couponTemplateDao.save(couponTemplate); 抛出异常,无法更新优惠券可用状态为 true ;抛出异常为:
com.imooc.coupon.config.AsyncPoolConfig : Async Error:Error attempting to apply AttributeConverter; nested exception is javax.persistence.PersistenceException: Error attempting to apply AttributeConverter, method:asyncConstructCouponByTemplate,Param:[{“available”:true,“category”:“MANJIAN”,“count”:10,“createTime”:1575833224639,“desc”:“这是一张优惠券模板”,“expired”:false,“id”:38,“key”:“100120191208”,“logo”:“http://www.imooc.com”,“name”:“优惠券模板-1575833224452”,“productLine”:“DAMAO”,“rule”:{“discount”:{“base”:1,“quota”:5},“expiration”:{“deadline”:1581017224456,“gap”:1,“period”:2},“limitation”:1,“usage”:{“city”:“桐城市”,“goodsType”:"[“文娱”,“家居”]",“province”:“安徽省”},“weight”:"[]"},“target”:“SINGLE”,“userId”:10001}]

正在回答 回答被采纳积分+3

1回答

张勤一 2019-12-09 10:18:14

同学你好:

    根据这里的异常信息判断,大概率是你的代码写的有问题:Error attempting to apply AttributeConverter

    这句话的意思就是使用转换器的时候报错。可以自行查查代码的问题(参考我在 git 中给出的代码),或者加下 QQ 群详细的给出报错信息。


    欢迎来 QQ 群随时交流、讨论,也非常感谢同学的支持!

2 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号