mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
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:
+2
-1
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user