From 7df755d8c978b5ea80f41ddf5be68aeb6c2f5d39 Mon Sep 17 00:00:00 2001 From: xiaoguangbin Date: Fri, 20 Dec 2024 10:02:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.oracle=E5=88=87=E6=8D=A2=E8=87=B3pgsql?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=20=E8=87=AA=E5=8A=A8=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/mybatis/MybatisPlusKeyGenerator.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisPlusKeyGenerator.java diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisPlusKeyGenerator.java b/jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisPlusKeyGenerator.java new file mode 100644 index 00000000..416a954b --- /dev/null +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisPlusKeyGenerator.java @@ -0,0 +1,13 @@ +package org.jeecg.config.mybatis; + +import com.baomidou.mybatisplus.extension.incrementer.PostgreKeyGenerator; +import org.springframework.context.annotation.Bean; +import org.springframework.stereotype.Component; + +@Component("MybatisPlusKeyGenerator") +public class MybatisPlusKeyGenerator { + @Bean + public PostgreKeyGenerator postgreKeyGenerator(){ + return new PostgreKeyGenerator(); + } +}