Meituan-Dianping / Leaf

Distributed ID Generate Service
Apache License 2.0
6.48k stars 1.84k forks source link

Field properties in com.tencent.devops.leaf.plugin.LeafSpringBootStarterAutoConfigure required a single bean, but 2 were found #214

Open yangxu880715 opened 11 months ago

yangxu880715 commented 11 months ago
image

为什么我启动springboot报了这个错。我只引入了一个leaf-boot-start的依赖

Field properties in com.tencent.devops.leaf.plugin.LeafSpringBootStarterAutoConfigure required a single bean, but 2 were found:

shichaowei commented 1 month ago
image

为什么我启动springboot报了这个错。我只引入了一个leaf-boot-start的依赖

Field properties in com.tencent.devops.leaf.plugin.LeafSpringBootStarterAutoConfigure required a single bean, but 2 were found: - leafSpringBootProperties: defined in URL [jar:file:/C:/repository/com/tencent/devops/leaf/leaf-boot-starter/1.0.2-RELEASE/leaf-boot-starter-1.0.2-RELEASE.jar!/com/tencent/devops/leaf/plugin/LeafSpringBootProperties.class] - leaf-com.tencent.devops.leaf.plugin.LeafSpringBootProperties: defined in unknown location。

大佬 找到原因了吗?碰到了一样的问题