在示例代码中获取 JOhm 异常
昨天尝试将 JOhm 库与 Jedis 一起使用来简化我的工作并缓存整个对象,而不仅仅是其中的一部分。从一开始我就遇到了例外。
异常:
Exception in thread "main" redis.clients.johm.JOhmException: java.lang.IllegalArgumentException: Can not set java.lang.Long field User.id to java.lang.Integer
我在项目的源代码中查找了这个异常(也在那里创建了一个问题)并找到了抛出它的地方,但我不太了解注释,因此也不太理解代码。
也许有人遇到了同样的问题?
Yesterday tried to use JOhm
library with Jedis
to simplify my work and cache whole object, not just parts of it. And already from the beginning I was met with exception.
Exception:
Exception in thread "main" redis.clients.johm.JOhmException: java.lang.IllegalArgumentException: Can not set java.lang.Long field User.id to java.lang.Integer
I looked for this exception in source of the project (created also an issue there about that) and found the place where it is thrown, but I don't know annotations well and don't understand code quite well for that reason.
Maybe someone encountered the same problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论