报错信息
Type definition error: [simple type, class com.project.domain.Account];
nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException:
No serializer found for class com.project.domain.Account
and no properties discovered to create BeanSerializer
(to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
(through reference chain: com.project.domain.GeneralResult[\"data\"])
解决办法:将基本数据类型更换成对应的包装类