rocketmq-spring icon indicating copy to clipboard operation
rocketmq-spring copied to clipboard

RocketMQAutoConfiguration was not automatically injected

Open insight720 opened this issue 2 years ago • 3 comments
trafficstars

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 2

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

  • What did you see instead? RocketMQTemplate not injected. 3

  1. 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
  1. 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

insight720 avatar Jun 23 '23 07:06 insight720

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

francisoliverlee avatar Jul 27 '23 03:07 francisoliverlee

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

mufengCc avatar Sep 04 '23 09:09 mufengCc

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

pendulm avatar Oct 25 '23 05:10 pendulm