+
 新版

Jfinal 2.0版本以后的renderJson的奇怪的问题,启动后正常没多久就报错

Polly蜀黍 发布于 2016/02/16 17:12
阅读 525
收藏 0

一个奇怪的问题,代码中用到了renderJson(obj)方法,tomcat启动后操作json正常,过个半个小时后再操作json就出现以下错误:

com.fasterxml.jackson.databind.JsonMappingException: No se
rializer found for class com.sosee.app.member.pojo.Member and no properties disc
overed to create BeanSerializer (to avoid exception, disable SerializationFeatur
e.FAIL_ON_EMPTY_BEANS)

重启tomcat后又正常。过一段时间后又出现这个问题,我也是懵了。求教高手。

之前用的jfinal 1.x版本没有此问题。升级到2.x之后出现此问题。

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部