一个奇怪的问题,代码中用到了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之后出现此问题。
JFinal
JSON