Commit 11ab4b4832f8d9222646d083c92204d7b2b7f5fc
1 parent
3afa6641
缺少JsonIgnore包路径。
Showing
1 changed file
with
2 additions
and
0 deletions
ruoyi/src/main/java/com/ruoyi/project/system/domain/SysUser.java
| ... | ... | @@ -7,6 +7,7 @@ import javax.validation.constraints.NotBlank; |
| 7 | 7 | import javax.validation.constraints.Size; |
| 8 | 8 | import org.apache.commons.lang3.builder.ToStringBuilder; |
| 9 | 9 | import org.apache.commons.lang3.builder.ToStringStyle; |
| 10 | +import com.fasterxml.jackson.annotation.JsonIgnore; | |
| 10 | 11 | import com.fasterxml.jackson.annotation.JsonProperty; |
| 11 | 12 | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| 12 | 13 | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType; |
| ... | ... | @@ -196,6 +197,7 @@ public class SysUser extends BaseEntity |
| 196 | 197 | { |
| 197 | 198 | this.avatar = avatar; |
| 198 | 199 | } |
| 200 | + | |
| 199 | 201 | @JsonIgnore |
| 200 | 202 | @JsonProperty |
| 201 | 203 | public String getPassword() | ... | ... |