encrypt-body-spring-boot-starter icon indicating copy to clipboard operation
encrypt-body-spring-boot-starter copied to clipboard

全局返回结果里怎么加密

Open GXSZone opened this issue 1 year ago • 2 comments

这种仅对data加密在全局返回结果里怎么加密 image

{ "code":1, "message":"成功", "data":{} }

GXSZone avatar Aug 02 '22 09:08 GXSZone

可以尝试使用声明类单一属性加解密:https://github.com/Licoy/encrypt-body-spring-boot-starter#%E5%AF%B9%E5%A3%B0%E6%98%8E%E7%B1%BB%E5%8D%95%E4%B8%80%E5%B1%9E%E6%80%A7%E7%94%9F%E6%95%88

Licoy avatar Aug 02 '22 11:08 Licoy

可以尝试使用声明类单一属性加解密:https://github.com/Licoy/encrypt-body-spring-boot-starter#%E5%AF%B9%E5%A3%B0%E6%98%8E%E7%B1%BB%E5%8D%95%E4%B8%80%E5%B1%9E%E6%80%A7%E7%94%9F%E6%95%88

试了不行,不知道是不是我使用问题

GXSZone avatar Aug 02 '22 11:08 GXSZone