apache / apache/rocketmq-spring

An MQMessageListener annotation is implemented by imitating rocket-spring-boot 2.0.4, but the configuration read by the consumer has always been the IP that is automatically configured by springboot

Open
#538 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
943
PR merge metrics
No merged PRs in 30d

Description

1.Content of annotations
![image](https://user-images.githubusercontent.com/34874709/223398108-9bef4d25-14f1-4ae1-9f4e-7475e0ae59a1.png)

2.Implemented code class
![image](https://user-images.githubusercontent.com/34874709/223398785-0982516c-6db8-4e02-98c7-82d19b983e78.png)

3.Initialize the consumer part
![image](https://user-images.githubusercontent.com/34874709/223399686-cd364e76-3ef1-4a59-a528-5d12abdc87c8.png)

4.Container creation and registration
![image](https://user-images.githubusercontent.com/34874709/223400070-f706e4dd-174e-4aca-a5c8-1813bb8c7db5.png)
![image](https://user-images.githubusercontent.com/34874709/223400101-9cd8d7a4-1ec6-4678-a904-f3872b80b78d.png)

5.Annotation use
![image](https://user-images.githubusercontent.com/34874709/223400308-9b9a12b6-e9d8-4639-bfc4-ec889a4510af.png)
6.configuration file
![image](https://user-images.githubusercontent.com/34874709/223400620-eda667a8-fb58-48db-8416-644965adb853.png)

The configuration I used for custom annotation configuration is configuration 2, and the configuration 2 used for tracking code creation and consumer registration is also used, but the configuration in configuration 1 has actually been read

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.