一、该问题的重现步骤是什么?
1. blade.yaml配置文件中启用sentinel配置
2. 启动AdminApplication服务,成功启动
3. 启动UserApplication服务,启动报错,服务无法启动
二、你期待的结果是什么?实际看到的又是什么?
期待结果:服务启动成功,并且在nacos上查看到服务,在Sentinel中监控到服务。
实际结果:AdminApplication服务可以启动成功,但是UserApplication及其他服务启动报错。
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
产品:BladeX
版本:2.0.7.RELEASE
操作系统版本:Windows 10
四、请提供详细的错误堆栈信息,这很重要。
2020-08-21 10:00:40.345 INFO 17556 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2020-08-21 10:00:40.376 INFO 17556 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2020-08-21 10:00:40.552 INFO 17556 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-08-21 10:00:40.580 ERROR 17556 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 1 of constructor in org.springblade.system.user.controller.UserController required a single bean, but 2 were found:
- feignSentinelBuilder: defined by method 'feignSentinelBuilder' in class path resource [com/alibaba/cloud/sentinel/feign/SentinelFeignAutoConfiguration.class]
- feignHystrixBuilder: defined by method 'feignHystrixBuilder' in class path resource [org/springblade/core/cloud/feign/BladeFeignAutoConfiguration$HystrixFeignConfiguration.class]
Action:
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
Disconnected from the target VM, address: '127.0.0.1:64930', transport: 'socket'
Process finished with exit code 1
五、若有更多详细信息,请在下面提供。
配置文件如下:
扫一扫访问 Blade技术社区 移动端