对象属性为空依然序列化
Showing
2 changed files
with
3 additions
and
1 deletions
| 1 | package com.pashanhoo.archive.entity.vo; | 1 | package com.pashanhoo.archive.entity.vo; |
| 2 | 2 | ||
| 3 | import com.fasterxml.jackson.annotation.JsonInclude; | ||
| 3 | import com.pashanhoo.bdcdy.entity.vo.DgBdcdyDetailVO; | 4 | import com.pashanhoo.bdcdy.entity.vo.DgBdcdyDetailVO; |
| 4 | import com.pashanhoo.business.entity.vo.DgBusinessDetailVO; | 5 | import com.pashanhoo.business.entity.vo.DgBusinessDetailVO; |
| 5 | import io.swagger.annotations.ApiModel; | 6 | import io.swagger.annotations.ApiModel; |
| ... | @@ -15,6 +16,7 @@ import java.util.List; | ... | @@ -15,6 +16,7 @@ import java.util.List; |
| 15 | @Data | 16 | @Data |
| 16 | @EqualsAndHashCode(callSuper = false) | 17 | @EqualsAndHashCode(callSuper = false) |
| 17 | @ApiModel(value = "档案封皮和案卷信息返回实体") | 18 | @ApiModel(value = "档案封皮和案卷信息返回实体") |
| 19 | @JsonInclude() | ||
| 18 | public class ArchiveDetailAndCoverVO implements Serializable { | 20 | public class ArchiveDetailAndCoverVO implements Serializable { |
| 19 | 21 | ||
| 20 | private static final long serialVersionUID = 1L; | 22 | private static final long serialVersionUID = 1L; | ... | ... |
| ... | @@ -16,7 +16,7 @@ spring: | ... | @@ -16,7 +16,7 @@ spring: |
| 16 | jackson: | 16 | jackson: |
| 17 | time-zone: GMT+8 | 17 | time-zone: GMT+8 |
| 18 | date-format: yyyy-MM-dd HH:mm:ss | 18 | date-format: yyyy-MM-dd HH:mm:ss |
| 19 | default-property-inclusion: non_null | 19 | default-property-inclusion: always |
| 20 | datasource: | 20 | datasource: |
| 21 | dynamic: | 21 | dynamic: |
| 22 | primary: master | 22 | primary: master | ... | ... |
-
Please register or sign in to post a comment