Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weathe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jianhaijun
weathe
Commits
5b680b8a
Commit
5b680b8a
authored
Apr 20, 2026
by
jianhaijun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rockerMQ实例功能
parent
7260f367
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
7 deletions
+31
-7
API文档.md
API文档.md
+2
-3
pom.xml
pom.xml
+25
-0
SecurityConfig.java
src/main/java/com/example/demo/common/SecurityConfig.java
+0
-3
kafkaController.java
...ain/java/com/example/demo/controller/kafkaController.java
+1
-1
常用命令.md
常用命令.md
+3
-0
No files found.
API文档.md
View file @
5b680b8a
# API
接口文档
# API
接口文档
...
@@ -277,4 +277,3 @@ destination:/topic/test-topic
...
@@ -277,4 +277,3 @@ destination:/topic/test-topic
|
`/kafka-test.html`
| 🔓 无需认证 |
|
`/kafka-test.html`
| 🔓 无需认证 |
|
`/api/protected/**`
| 🔒 需要JWT认证 |
|
`/api/protected/**`
| 🔒 需要JWT认证 |
| 其他接口 | 🔒 需要JWT认证 |
| 其他接口 | 🔒 需要JWT认证 |
\ No newline at end of file
0
\ No newline at end of file
pom.xml
View file @
5b680b8a
...
@@ -28,6 +28,10 @@
...
@@ -28,6 +28,10 @@
</scm>
</scm>
<properties>
<properties>
<java.version>
21
</java.version>
<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>
</properties>
...
@@ -181,6 +185,27 @@
...
@@ -181,6 +185,27 @@
<artifactId>
spring-kafka
</artifactId>
<artifactId>
spring-kafka
</artifactId>
</dependency>
</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>
</dependencies>
<build>
<build>
...
...
src/main/java/com/example/demo/common/SecurityConfig.java
View file @
5b680b8a
package
com
.
example
.
demo
.
common
;
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.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.authentication.AuthenticationManager
;
import
org.springframework.security.authentication.AuthenticationManager
;
...
...
src/main/java/com/example/demo/controller/kafkaController.java
View file @
5b680b8a
package
com
.
example
.
demo
.
controller
;
package
com
.
example
.
demo
.
controller
;
import
org.apache.kafka.clients.producer.*
;
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.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
常用命令.md
0 → 100644
View file @
5b680b8a
mvn mybatis-generator:generate -e
mvn mybatis-generator:generate -e
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment