Skip to content

Conversation

@imp2002
Copy link
Contributor

@imp2002 imp2002 commented Mar 13, 2023

What is the purpose of the change

Fix: #539 Support SpringBoot 3.x.

Springboot-3.0 has abandoned spring.factories automatic assembly, it's replace by /resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports, add this file for compatibility.

reference

Brief changelog

Support SpringBoot 3.x

Verifying this change

Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist.
  • Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@KongZouXiang
Copy link

I had the same problem today. Why didn't anyone merge

@waitttttttttttttttttttttttting

I had the same problem today. Why didn't anyone merge

+1 me too,

@RongtongJin RongtongJin merged commit 2cf9958 into apache:master Jun 2, 2023
@yinyuncan
Copy link

大家如果在升级到spring boot 3的时候遇到该问题,直接使用@import(RocketMQAutoConfiguration.class) 配置即可

@988494
Copy link

988494 commented Oct 17, 2023

大家如果在升级到spring boot 3的时候遇到该问题,直接使用@import(RocketMQAutoConfiguration.class)配置即可

监听也会出问题,后面还有很多问题,我基本都踩了一个遍

@Routee
Copy link

Routee commented Oct 17, 2023

大家如果在升级到spring boot 3的时候遇到该问题,直接使用@import(RocketMQAutoConfiguration.class)配置即可

监听也会出问题,后面还有很多问题,我基本都踩了一个遍

那监听是怎么解决的啊

@xuxiaocong
Copy link

入口类增加
@import(RocketMQAutoConfiguration.class)

配置需要下面三个
rocketmq.name-server=xxx
rocketmq.producer.group=xxx
rocketmq.pull-consumer.group=xxx # 无法监听的增加这个配置就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is there a springboot3.x adaptation

8 participants