apache / apache/rocketmq-spring

RocketMQAutoConfiguration was not automatically injected

Open
#569 3 comments 0 reactions 0 assignees View on GitHub
question
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`.
![1](https://github.com/apache/rocketmq-spring/assets/108797013/5e49bd89-7d8d-4f36-b28b-036fe73ef1cd)
![2](https://github.com/apache/rocketmq-spring/assets/108797013/4ea93247-c6fd-4f7d-b2c3-9e1bc0195c56)

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

- What did you see instead?
`RocketMQTemplate` not injected.
![3](https://github.com/apache/rocketmq-spring/assets/108797013/e5f724e5-94c4-47f7-a00b-0048fd8d077a)

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`.
![4](https://github.com/apache/rocketmq-spring/assets/108797013/57eb3a52-99ef-4fd3-87e2-6e4a0cbcdf12)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.