fix: remove ZK discovery dep, bootstrap identical to V1

- Remove spring-cloud-starter-zookeeper-discovery from POM
  (V1 doesn't have it, causes zookeeperRibbonClientConfiguration error)
- Remove ZK exclusions from AppApplication.java (no longer needed)
- bootstrap.properties now 100% identical to V1 production
- PersonFeignClient restored to placeholder-based name (no hardcoded URL)
- Remove NIWSServerListClassName/listOfServers (ConfigurationBasedServerList)
Bump version to 2.0.17
This commit is contained in:
反编译工作区
2026-05-05 18:53:32 +08:00
parent d838dd0897
commit 1c5e60f690
24 changed files with 1225 additions and 13 deletions
@@ -52,10 +52,6 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zookeeper-discovery</artifactId>
</dependency>
</dependencies>
<build>
@@ -7,8 +7,6 @@ import org.springframework.boot.SpringApplication;
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;
@@ -21,7 +19,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, ZookeeperServiceRegistryAutoConfiguration.class}, scanBasePackages = {"cn.cloudwalk.elevator",
@SpringBootApplication(exclude = {PageHelperAutoConfiguration.class}, scanBasePackages = {"cn.cloudwalk.elevator",
"cn.cloudwalk.web", "cn.cloudwalk.rest.cwoscomponent", "cn.cloudwalk.serial", "cn.cloudwalk.cwos.client.resource"})
public class AppApplication {