From cbeff120e541d8255cc317ed7b0fb6e2cd445785 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Thu, 3 Aug 2023 17:30:52 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.0=E3=80=91=E3=80=90rule=E3=80=91?= =?UTF-8?q?=E6=9B=B4=E6=96=B0mp=E7=9A=84typehandler=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=88=AB=E7=9A=84json=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kernel/rule/constants/MpConstants.java | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/MpConstants.java b/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/MpConstants.java index a15e7a104..0e6089250 100644 --- a/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/MpConstants.java +++ b/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/MpConstants.java @@ -9,8 +9,24 @@ package cn.stylefeng.roses.kernel.rule.constants; public class MpConstants { /** + * jackson模式 + *

* 一般用在手动使用LambdaUpdateWrapper时候,手动更新json字段,需要手动指定typeHandler */ - public static final String TYPE_HANDLER_STRING = "typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"; + public static final String TYPE_HANDLER_STRING_JACKSON = "typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"; -} + /** + * gson模式 + *

+ * 一般用在手动使用LambdaUpdateWrapper时候,手动更新json字段,需要手动指定typeHandler + */ + public static final String TYPE_HANDLER_STRING_GSON = "typeHandler=com.baomidou.mybatisplus.extension.handlers.GsonTypeHandler"; + + /** + * fastjson模式 + *

+ * 一般用在手动使用LambdaUpdateWrapper时候,手动更新json字段,需要手动指定typeHandler + */ + public static final String TYPE_HANDLER_STRING_FASTJSON = "typeHandler=com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"; + +} \ No newline at end of file