Open strongant opened 4 weeks ago
将easeagentt的jar 放到启动命令的最后即可避免该问题发生,比如:java -jar xxx.jar -javaagent:/Users/apple/wingate-agent/wingate-agent.jar
主要原因为:因此导致冲突产生,具体产生问题的root cause 代码为:
org.springframework.core.io.support.PathMatchingResourcePatternResolver#findPathMatchingResources
...
URL rootDirUrl = rootDirResource.getURL();
...
使用的springboot 版本为2.7.13 , easeagent 版本为master 最新版本
比如原始代码如下:
@Configuration @ImportResource({ "classpath:spring/*.xml" }) public class DubboConfig {
}
当加入 easeagent之后,直接报错,找不到对应的Bean,影响正常启动。 报错为:
如果调整为如下方式则可以正常启动: