You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "insight720 (via GitHub)" <gi...@apache.org> on 2023/06/23 07:31:35 UTC

[GitHub] [rocketmq-spring] insight720 opened a new issue, #569: RocketMQAutoConfiguration was not automatically injected in Spring Boot 3.1.0

insight720 opened a new issue, #569:
URL: https://github.com/apache/rocketmq-spring/issues/569

   **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)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-spring] mufengCc commented on issue #569: RocketMQAutoConfiguration was not automatically injected

Posted by "mufengCc (via GitHub)" <gi...@apache.org>.
mufengCc commented on issue #569:
URL: https://github.com/apache/rocketmq-spring/issues/569#issuecomment-1704913404

   好像是 sprngboot3.x 调整了自动装配的机制


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-spring] mufengCc commented on issue #569: RocketMQAutoConfiguration was not automatically injected

Posted by "mufengCc (via GitHub)" <gi...@apache.org>.
mufengCc commented on issue #569:
URL: https://github.com/apache/rocketmq-spring/issues/569#issuecomment-1704910832

   springboot3.x,自动装配有点调整。
   
   需要在`resources`路径下,新增目录`META_INF/spring`,并新增文件文件`org.springframework.boot.autoconfigure.AutoConfiguration.imports`,里面填写`org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration`
   
   ![image](https://github.com/apache/rocketmq-spring/assets/48708389/5a064d8a-e892-4d88-80eb-19c49fd3d67d)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] RocketMQAutoConfiguration was not automatically injected [rocketmq-spring]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #569:
URL: https://github.com/apache/rocketmq-spring/issues/569#issuecomment-5667094292

   **Issue Evaluation**
   
   Category: `question`
   
   This appears to be a usage question. Please check the project documentation and existing issues for answers. If your question remains unanswered, consider reaching out via the project's mailing list or discussion forum for community support.
   
   ---
   *Automated evaluation by github-manager-bot*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] RocketMQAutoConfiguration was not automatically injected [rocketmq-spring]

Posted by "pendulm (via GitHub)" <gi...@apache.org>.
pendulm commented on issue #569:
URL: https://github.com/apache/rocketmq-spring/issues/569#issuecomment-1778517162

   spring 3.0 依赖 jdk17
   @PostConstruct 注解从`javax.annotation`包改成了`jakarta.annotation`,导致starter包里面所有的注解都未生效。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-spring] francisoliverlee commented on issue #569: RocketMQAutoConfiguration was not automatically injected

Posted by "francisoliverlee (via GitHub)" <gi...@apache.org>.
francisoliverlee commented on issue #569:
URL: https://github.com/apache/rocketmq-spring/issues/569#issuecomment-1652850451

   try run the demo "ProducerApplication",  check RocketMQAutoConfiguration run or not


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org