apache / apache/rocketmq-spring
RocketMQAutoConfiguration was not automatically injected
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 943
- PR merge metrics
- No merged PRs in 30d
Description
**BUG REPORT**
1. Please describe the issue you observed:
- What did you do (The steps to reproduce)?
Add `rocketmq-spring-boot-starter` dependency and provide the correct configuration information in `application.yaml`.


- What did you expect to see?
`RocketMQTemplate` can be injected.
- What did you see instead?
`RocketMQTemplate` not injected.

2. Please tell us about your environment:
- JDK 17
- Spring Boot 3.1.0
- Spring Cloud 2022.0.3
- rocketmq-spring-boot-starter 2.2.3
4. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
I manually added `RocketMQAutoConfiguration` to the automatic configuration list `org.springframework.boot.autoconfigure.AutoConfiguration.imports` to successfully inject `RocketMQTemplate`.

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with JDK 17, Spring Boot 3.1.0, Spring Cloud 2022.0.3, and rocketmq-spring-boot-starter 2.2.3. Inspect RocketMQAutoConfiguration and org.springframework.boot.autoconfigure.AutoConfiguration.imports, then verify that RocketMQTemplate is injected without manually adding the configuration entry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100