Commit 5b680b8a authored by jianhaijun's avatar jianhaijun

rockerMQ实例功能

parent 7260f367
# API 接口文档
# API 接口文档
......@@ -276,5 +276,4 @@ destination:/topic/test-topic
| `/kafka/**` | 🔓 无需认证 |
| `/kafka-test.html` | 🔓 无需认证 |
| `/api/protected/**` | 🔒 需要JWT认证 |
| 其他接口 | 🔒 需要JWT认证 |
0
\ No newline at end of file
| 其他接口 | 🔒 需要JWT认证 |
\ No newline at end of file
......@@ -28,6 +28,10 @@
</scm>
<properties>
<java.version>21</java.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<dubbo.version>3.2.0</dubbo.version>
<spring.version>5.3.21</spring.version>
</properties>
......@@ -181,6 +185,27 @@
<artifactId>spring-kafka</artifactId>
</dependency>
<!-- Dubbo核心依赖 -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${dubbo.version}</version>
</dependency>
<!-- Zookeeper客户端依赖 -->
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>4.0.1 </version>
</dependency>
</dependencies>
<build>
......
package com.example.demo.common;
//import com.example.security.JwtAuthenticationEntryPoint;
//import com.example.security.JwtAuthenticationFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
......
package com.example.demo.controller;
import org.apache.kafka.clients.producer.*;
import org.apache.kafka.common.serialization.StringSerializer;
import org.apache.kafka.common.serialization.StringSerializer;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
......
mvn mybatis-generator:generate -e
mvn mybatis-generator:generate -e
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment