标签: java spring jackson
是否可以配置spring和jackson,将entity中的Boolean字段设置为false,以防请求不包含值?
请求
{ title: "aaa" }
实体:
class Entity{ private String title;//will be 'aaa' private Boolean active;//will be 'null' //getters and setters }