You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@configuration
@ImportResource({ "classpath:spring/*.xml" })
public class DubboConfig {
}
当加入 easeagent之后,直接报错,找不到对应的Bean,影响正常启动。 报错为:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xxx.xxx.xxx.util.id.xxx' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotatio
ns: {@org.springframework.beans.factory.annotation.Qualifier(value="xxx")}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1801) ~[spring-beans-5.3.28.jar!/:5.3.28]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1357) ~[spring-beans-5.3.28.jar!/:5.3.28]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.28.jar!/:5.3.28]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.28.jar!/:5.3.28]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.28.jar!/:5.3.28]
... 27 more
如果调整为如下方式则可以正常启动:
@Configuration
@ImportResource({"classpath:spring/spring-benas.xml"})
public class DubboConfig {
}
The text was updated successfully, but these errors were encountered:
使用的springboot 版本为2.7.13 , easeagent 版本为master 最新版本
比如原始代码如下:
@configuration
@ImportResource({ "classpath:spring/*.xml" })
public class DubboConfig {
}
当加入 easeagent之后,直接报错,找不到对应的Bean,影响正常启动。 报错为:
如果调整为如下方式则可以正常启动:
The text was updated successfully, but these errors were encountered: