|
|
@@ -1,23 +1,22 @@
|
|
|
-package com.dk.common.config;
|
|
|
-
|
|
|
-import com.dangdang.ddframe.rdb.sharding.id.generator.IdGenerator;
|
|
|
-import com.dangdang.ddframe.rdb.sharding.id.generator.self.IPIdGenerator;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
-
|
|
|
-/**
|
|
|
- * @Author: dapeng
|
|
|
- * @Description: ID生成器配置
|
|
|
- * @Date: create in 2022/6/27 16:14
|
|
|
- * @Remark: 使用时直接注入即可
|
|
|
- * @Resource
|
|
|
- * private IdGenerator idGenerator;
|
|
|
- */
|
|
|
-@Configuration
|
|
|
-public class
|
|
|
-IdGeneratorConfig {
|
|
|
- @Bean
|
|
|
- public IdGenerator getIdGenerator() {
|
|
|
- return new IPIdGenerator();
|
|
|
- }
|
|
|
-}
|
|
|
+//package com.dk.common.config;
|
|
|
+//
|
|
|
+//import com.dangdang.ddframe.rdb.sharding.id.generator.IdGenerator;
|
|
|
+//import com.dangdang.ddframe.rdb.sharding.id.generator.self.IPIdGenerator;
|
|
|
+//import org.springframework.context.annotation.Bean;
|
|
|
+//import org.springframework.context.annotation.Configuration;
|
|
|
+//
|
|
|
+///**
|
|
|
+// * @Author: dapeng
|
|
|
+// * @Description: ID生成器配置
|
|
|
+// * @Date: create in 2022/6/27 16:14
|
|
|
+// * @Remark: 使用时直接注入即可
|
|
|
+// * @Resource
|
|
|
+// * private IdGenerator idGenerator;
|
|
|
+// */
|
|
|
+//@Configuration
|
|
|
+//public class IdGeneratorConfig {
|
|
|
+// @Bean
|
|
|
+// public IdGenerator getIdGenerator() {
|
|
|
+// return new IPIdGenerator();
|
|
|
+// }
|
|
|
+//}
|