在system模块引入其他服务的api 启动报错

Blade 已结 2 136
lzb0312
lzb0312 2024-08-28 16:35

一、该问题的重现步骤是什么?

1. 使用blade-pay插件 在blade-pay-api包定义feign接口

2. 然后再blade-system模块引入blade-pay-api

3.启动balde-system报错


二、你期待的结果是什么?实际看到的又是什么?

system可以正常启动 

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

clound的4.0.1版本 本地启动

四、请提供详细的错误堆栈信息,这很重要。

2024-08-28 16:34:23.917 ERROR 21896 --- [           main] o.s.boot.SpringApplication               : Application run failed


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpClientConnectionPool' defined in class path resource [org/springblade/core/cloud/http/RestTemplateConfiguration.class]: null

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:334)

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:59)

at org.springblade.system.SystemApplication.main(SystemApplication.java:41)

Caused by: java.lang.StackOverflowError: null

at java.base/java.util.HashMap.putVal(HashMap.java:655)

at java.base/java.util.HashMap.put(HashMap.java:610)

at cn.hutool.core.annotation.CombinationAnnotationElement.parseDeclared(CombinationAnnotationElement.java:107)

at cn.hutool.core.annotation.CombinationAnnotationElement.parseDeclared(CombinationAnnotationElement.java:108)

at cn.hutool.core.annotation.CombinationAnnotationElement.parseDeclared(CombinationAnnotationElement.java:108)

at cn.hutool.core.annotation.CombinationAnnotationElement.parseDeclared(CombinationAnnotationElement.java:108)

at cn.hutool.core.annotation.CombinationAnnotationElement.parseDeclared(CombinationAnnotationElement.java:108)

五、若有更多详细信息,请在下面提供。

2条回答
  •  lzb0312
    lzb0312 (楼主)
    2024-08-29 14:01

    已经解决了,是pay-api中的hu-tool的版本低导致的依赖冲突

提交回复