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 new file mode 100644 index 000000000..a15e7a104 --- /dev/null +++ b/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/MpConstants.java @@ -0,0 +1,16 @@ +package cn.stylefeng.roses.kernel.rule.constants; + +/** + * 用于mybatis-plus的typeHandler常量 + * + * @author fengshuonan + * @since 2023/8/2 13:55 + */ +public class MpConstants { + + /** + * 一般用在手动使用LambdaUpdateWrapper时候,手动更新json字段,需要手动指定typeHandler + */ + public static final String TYPE_HANDLER_STRING = "typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"; + +}