fix: also exclude ZookeeperServiceRegistryAutoConfiguration

Second Registration bean conflict: ServiceRegistryEndpoint also needs
single bean. Exclude both ZK auto-configuration classes for ServiceRegistry.
- ZookeeperAutoServiceRegistrationAutoConfiguration (already excluded)
- ZookeeperServiceRegistryAutoConfiguration (added)
Bump version to 2.0.13
This commit is contained in:
反编译工作区
2026-05-05 18:03:49 +08:00
parent 6dd03b573b
commit 9c2edc09c9
@@ -8,6 +8,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.zookeeper.serviceregistry.ZookeeperAutoServiceRegistrationAutoConfiguration;
import org.springframework.cloud.zookeeper.serviceregistry.ZookeeperServiceRegistryAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
@@ -20,7 +21,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@MapperScan({"cn.cloudwalk.elevator.record.mapper", "cn.cloudwalk.elevator.device.mapper",
"cn.cloudwalk.elevator.passrule.mapper", "cn.cloudwalk.elevator.person.mapper",
"cn.cloudwalk.elevator.codeElevatorArea.mapper"})
@SpringBootApplication(exclude = {PageHelperAutoConfiguration.class, ZookeeperAutoServiceRegistrationAutoConfiguration.class}, scanBasePackages = {"cn.cloudwalk.elevator",
@SpringBootApplication(exclude = {PageHelperAutoConfiguration.class, ZookeeperAutoServiceRegistrationAutoConfiguration.class, ZookeeperServiceRegistryAutoConfiguration.class}, scanBasePackages = {"cn.cloudwalk.elevator",
"cn.cloudwalk.web", "cn.cloudwalk.rest.cwoscomponent", "cn.cloudwalk.serial", "cn.cloudwalk.cwos.client.resource"})
public class ElevatorApplication {