commit d7a6e4a8a1940ac783d19ca2f933aff647e17a5b
Author: chaiyapeng <3535863041@qq.com>
Date: Wed Aug 7 22:31:46 2024 +0800
初始化
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3e403e3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,35 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..ee2c34b
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..1cb346e
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,33 @@
+
+
+ 4.0.0
+
+
+ com.muyu
+ cloud-common
+ 3.6.3
+
+
+ cloud-common-rabbit
+ 1.0.0
+
+
+ 17
+ 17
+ UTF-8
+
+
+
+
+ com.muyu
+ cloud-common-core
+
+
+
+ org.springframework.boot
+ spring-boot-starter-amqp
+
+
+
diff --git a/src/main/java/com/muyu/common/rabbit/RabbitConfig.java b/src/main/java/com/muyu/common/rabbit/RabbitConfig.java
new file mode 100644
index 0000000..122649a
--- /dev/null
+++ b/src/main/java/com/muyu/common/rabbit/RabbitConfig.java
@@ -0,0 +1,31 @@
+package com.muyu.common.rabbit;
+
+import jakarta.annotation.PostConstruct;
+import lombok.AllArgsConstructor;
+import lombok.extern.log4j.Log4j2;
+import org.springframework.amqp.core.AmqpAdmin;
+import org.springframework.amqp.core.AmqpTemplate;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * @Author:chaiyapeng
+ * @Package:com.muyu.common.rabbit
+ * @Project:cloud-common-rabbit
+ * @name:RabbitConfig
+ * @Date:2024/8/7 22:07
+ */
+@Log4j2
+@Configuration
+@AllArgsConstructor
+public class RabbitConfig {
+
+ private final AmqpAdmin amqpAdmin;
+
+ private final AmqpTemplate amqpTemplate;
+
+ @PostConstruct
+ public void init(){
+ log.info("RabbitMq启动成功");
+ }
+
+}
diff --git a/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
new file mode 100644
index 0000000..6759042
--- /dev/null
+++ b/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
@@ -0,0 +1 @@
+com.muyu.common.rabbit.RabbitConfig