#214·Leaf

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

Author: yangxu880715Created Dec 25, 2023Updated Oct 28, 2024
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。