sofastack / sofa-boot

SOFABoot is a framework that enhances Spring Boot and fully compatible with it, provides readiness check, class isolation, etc.
https://www.sofastack.tech/sofa-boot/docs/Home
Apache License 2.0
4.95k stars 1.26k forks source link

sofaboot从3.2.2切换到3.3.1版本导致抛出异常 No SofaRuntimeManager Found! #915

Closed liu280790081 closed 1 year ago

liu280790081 commented 2 years ago

demo地址:https://github.com/liu280790081/sofachannel-demo.git 分支为version-conflict 异常日志:default.log image

想知道版本切换后是否需要依赖其他包达到3.2.2的效果

liu280790081 commented 2 years ago

看了下3.2.2与3.3.2的源码 发现了其中一个区别 3.2.2版本: image

3.3.2版本 image

其中3.3.2版本将SofaRuntimeManager 注入到了spring上下文中而在3.2.2版本中没有注入,这里是否引起了某些其他影响?

alaneuler commented 2 years ago

模块和基座同时升级了吗

liu280790081 commented 2 years ago

模块和基座同时升级了吗

是的

l10178 commented 1 year ago

在 provider的pom里 引入 runtime-sofa-boot-starter 试一下,也许能解决你的问题。 `

com.alipay.sofa runtime-sofa-boot-starter ${sofa.boot.version}

`