diff --git a/spring-cloud-tencent-examples/polaris-discovery-example/discovery-caller-service/src/main/resources/bootstrap.yml b/spring-cloud-tencent-examples/polaris-discovery-example/discovery-caller-service/src/main/resources/bootstrap.yml index e5f608aaa..6fac7c686 100644 --- a/spring-cloud-tencent-examples/polaris-discovery-example/discovery-caller-service/src/main/resources/bootstrap.yml +++ b/spring-cloud-tencent-examples/polaris-discovery-example/discovery-caller-service/src/main/resources/bootstrap.yml @@ -6,6 +6,21 @@ spring: name: DiscoveryCallerService cloud: polaris: - discovery: - namespace: default address: grpc://127.0.0.1:8091 + consul: + port: 8500 + host: 127.0.0.1 + enabled: true + discovery: + register: true + health-check-path: /actuator/health + health-check-interval: 10s + instance-id: ${spring.application.name}:${server.port} + enabled: true + service-name: ${spring.application.name} + ip-address: localhost + prefer-ip-address: true +eureka: + client: + serviceUrl: + defaultZone: http://127.0.0.1:7654/eureka/ \ No newline at end of file