diff --git a/pom.xml b/pom.xml index b775434..5899e0e 100644 --- a/pom.xml +++ b/pom.xml @@ -41,6 +41,7 @@ spring-boot-demo-zookeeper spring-boot-demo-mq-rabbitmq spring-boot-demo-mq-rocketmq + spring-boot-demo-mq-kafka spring-boot-demo-websocket spring-boot-demo-websocket-socketio spring-boot-demo-activiti diff --git a/spring-boot-demo-mq-kafka/.gitignore b/spring-boot-demo-mq-kafka/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/spring-boot-demo-mq-kafka/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file diff --git a/spring-boot-demo-mq-kafka/pom.xml b/spring-boot-demo-mq-kafka/pom.xml new file mode 100644 index 0000000..1c5e88f --- /dev/null +++ b/spring-boot-demo-mq-kafka/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + + spring-boot-demo-mq-kafka + 1.0.0-SNAPSHOT + jar + + spring-boot-demo-mq-kafka + Demo project for Spring Boot + + + com.xkcoding + spring-boot-demo + 1.0.0-SNAPSHOT + + + + UTF-8 + UTF-8 + 1.8 + + + + + org.springframework.boot + spring-boot-starter + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + spring-boot-demo-mq-kafka + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/spring-boot-demo-mq-kafka/src/main/java/com/xkcoding/mq/kafka/SpringBootDemoMqKafkaApplication.java b/spring-boot-demo-mq-kafka/src/main/java/com/xkcoding/mq/kafka/SpringBootDemoMqKafkaApplication.java new file mode 100644 index 0000000..286d222 --- /dev/null +++ b/spring-boot-demo-mq-kafka/src/main/java/com/xkcoding/mq/kafka/SpringBootDemoMqKafkaApplication.java @@ -0,0 +1,14 @@ +package com.xkcoding.mq.kafka; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpringBootDemoMqKafkaApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootDemoMqKafkaApplication.class, args); + } + +} + diff --git a/spring-boot-demo-mq-kafka/src/main/resources/application.properties b/spring-boot-demo-mq-kafka/src/main/resources/application.properties new file mode 100644 index 0000000..e69de29 diff --git a/spring-boot-demo-mq-kafka/src/test/java/com/xkcoding/mq/kafka/SpringBootDemoMqKafkaApplicationTests.java b/spring-boot-demo-mq-kafka/src/test/java/com/xkcoding/mq/kafka/SpringBootDemoMqKafkaApplicationTests.java new file mode 100644 index 0000000..1aee5a0 --- /dev/null +++ b/spring-boot-demo-mq-kafka/src/test/java/com/xkcoding/mq/kafka/SpringBootDemoMqKafkaApplicationTests.java @@ -0,0 +1,17 @@ +package com.xkcoding.mq.kafka; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class SpringBootDemoMqKafkaApplicationTests { + + @Test + public void contextLoads() { + } + +} +