commit 88628f7a1dd320cec09af560880ab0cdaf9dbbbd
Author: bai <173792339@qq.com>
Date: Sun Jul 28 16:12:40 2024 +0800
初始化
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..35410ca
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..1898d9f
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..872d41f
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..b4cc47a
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..d1639d5
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,35 @@
+
+
+
+ com.muyu
+ cloud-common
+ 3.6.3
+
+ 4.0.0
+
+ cloud-common-datasource
+
+
+ cloud-common-datasource多数据源
+
+
+
+
+
+
+ com.alibaba
+ druid-spring-boot-3-starter
+ ${druid.version}
+
+
+
+
+ com.baomidou
+ dynamic-datasource-spring-boot3-starter
+ ${dynamic-ds.version}
+
+
+
+
diff --git a/src/main/java/com/muyu/common/datasource/annotation/Master.java b/src/main/java/com/muyu/common/datasource/annotation/Master.java
new file mode 100644
index 0000000..d9aae00
--- /dev/null
+++ b/src/main/java/com/muyu/common/datasource/annotation/Master.java
@@ -0,0 +1,18 @@
+package com.muyu.common.datasource.annotation;
+
+import com.baomidou.dynamic.datasource.annotation.DS;
+
+import java.lang.annotation.*;
+
+/**
+ * 主库数据源
+ *
+ * @author muyu
+ */
+@Target({ElementType.TYPE, ElementType.METHOD})
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+@DS("master")
+public @interface Master {
+
+}
diff --git a/src/main/java/com/muyu/common/datasource/annotation/Slave.java b/src/main/java/com/muyu/common/datasource/annotation/Slave.java
new file mode 100644
index 0000000..9663cd4
--- /dev/null
+++ b/src/main/java/com/muyu/common/datasource/annotation/Slave.java
@@ -0,0 +1,18 @@
+package com.muyu.common.datasource.annotation;
+
+import com.baomidou.dynamic.datasource.annotation.DS;
+
+import java.lang.annotation.*;
+
+/**
+ * 从库数据源
+ *
+ * @author muyu
+ */
+@Target({ElementType.TYPE, ElementType.METHOD})
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+@DS("slave")
+public @interface Slave {
+
+}
diff --git a/target/classes/com/muyu/common/datasource/annotation/Master.class b/target/classes/com/muyu/common/datasource/annotation/Master.class
new file mode 100644
index 0000000..6cb4fc8
Binary files /dev/null and b/target/classes/com/muyu/common/datasource/annotation/Master.class differ
diff --git a/target/classes/com/muyu/common/datasource/annotation/Slave.class b/target/classes/com/muyu/common/datasource/annotation/Slave.class
new file mode 100644
index 0000000..b61700d
Binary files /dev/null and b/target/classes/com/muyu/common/datasource/annotation/Slave.class differ
diff --git a/target/cloud-common-datasource-3.6.3.jar b/target/cloud-common-datasource-3.6.3.jar
new file mode 100644
index 0000000..c465c0b
Binary files /dev/null and b/target/cloud-common-datasource-3.6.3.jar differ
diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties
new file mode 100644
index 0000000..ad423ed
--- /dev/null
+++ b/target/maven-archiver/pom.properties
@@ -0,0 +1,3 @@
+artifactId=cloud-common-datasource
+groupId=com.muyu
+version=3.6.3
diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
new file mode 100644
index 0000000..b66cfdf
--- /dev/null
+++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
@@ -0,0 +1,2 @@
+com\muyu\common\datasource\annotation\Slave.class
+com\muyu\common\datasource\annotation\Master.class
diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
new file mode 100644
index 0000000..069c2b5
--- /dev/null
+++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
@@ -0,0 +1,2 @@
+D:\master\yjs-cloud-2112\cloud-common-datasource\src\main\java\com\muyu\common\datasource\annotation\Slave.java
+D:\master\yjs-cloud-2112\cloud-common-datasource\src\main\java\com\muyu\common\datasource\annotation\Master.java