blade-log修改项目和包名之后启动报错

Blade 未结 1 14
13662614554
悬赏:5

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

1. blade-log修改成xgy-log,包路径名称修改成springxgy.core.log

2. 在启动类里面修改了引入的BladeCloudApplication,修改如下

image.png

3.启动logAppLication报如下错误

Description:


Parameter 0 of constructor in org.springblade.core.log.config.BladeLogToolAutoConfiguration required a single bean, but 2 were found:

- logClient: defined in file [D:\workspace\Springxgy\xgy-service\xgy-log\target\classes\org\springxgy\core\log\feign\LogClient.class]

- org.springblade.core.log.feign.LogClientFallback: defined in unknown location


This may be due to missing parameter name information


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


Ensure that your compiler is configured to use the '-parameters' flag.

You may need to update both your build tool settings as well as your IDE.


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

我这是修改错误了吗?

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


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


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

1条回答
  • org.springblade.core.log.feign.LogClientFallback: defined in unknown location

    看着像是没完全改好,还有原本的包名。你执行mvn clean package命令看看控制台有没有报错

    0 讨论(0)
提交回复