在使用Spring @ResponseBody返回一个对象的json字符串时,抛出异常:
no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature......
原因:实体类的属性没有get和set方法。
在使用Spring @ResponseBody返回一个对象的json字符串时,抛出异常:
no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature......
原因:实体类的属性没有get和set方法。
展开阅读全文