From ed5063d9308438a0e799824039c7ca65c6d1da6c Mon Sep 17 00:00:00 2001 From: lbw Date: Wed, 7 Sep 2022 23:13:17 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=20close=20#I5Q36R=20?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3=E7=9A=84Long=E5=9E=8B?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=B2=A1=E6=9C=89=E8=BD=AC=E4=B8=BAstring?= =?UTF-8?q?=E7=BB=99=E5=89=8D=E7=AB=AF,=E5=AF=BC=E8=87=B4=E7=B2=BE?= =?UTF-8?q?=E5=BA=A6=E4=B8=A2=E5=A4=B1,=E5=85=B6=E4=BB=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3JacksonConfiguration=E9=83=BD=E7=94=9F=E6=95=88?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/pig4cloud/pig/common/security/service/PigUser.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/service/PigUser.java b/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/service/PigUser.java index 9ebbc9b5..36f48f9e 100755 --- a/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/service/PigUser.java +++ b/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/service/PigUser.java @@ -16,6 +16,8 @@ package com.pig4cloud.pig.common.security.service; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import lombok.Getter; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.SpringSecurityCoreVersion; @@ -38,12 +40,14 @@ public class PigUser extends User implements OAuth2AuthenticatedPrincipal { * 用户ID */ @Getter + @JsonSerialize(using = ToStringSerializer.class) private final Long id; /** * 部门ID */ @Getter + @JsonSerialize(using = ToStringSerializer.class) private final Long deptId; /**