Skip to content

Commit

Permalink
change examples (#170)
Browse files Browse the repository at this point in the history
Co-authored-by: fredrikliu <[email protected]>
  • Loading branch information
fredrikliu and fredrikliu authored May 10, 2024
1 parent 9d47e68 commit 4ab49d9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server.port=65002
spring.application.name=service-consumer
spring.application.name=service-consumer-quickstart-hotxon
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
spring.cloud.nacos.discovery.enabled=false
spring.cloud.nacos.config.enabled=false
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@ public static class EchoController {
@Value("${name:}")
private String name;

@Value("${spring.cloud.tencent.metadata.content.env}")
private String env;

@GetMapping("/echo/{string}")
public String echo(@PathVariable String string) {
return "Hello, I'm provider, receive msg : "
+ string
+ ", my metadata : "
+ " name config : "
+ name;
+ name
+ env;
}

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server.port=65101
server.port=65001
spring.application.name=service-provider-quickstart-hotxon
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
spring.cloud.nacos.discovery.enabled=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public ConfigurationParserInterceptor() {
beanInjectors.add(new LosslessBeanInjector());
beanInjectors.add(new LoadbalancerBeanInjector());
beanInjectors.add(new RouterBeanInjector());
// beanInjectors.add(new CircuitBreakerBeanInjector());
beanInjectors.add(new CircuitBreakerBeanInjector());
beanInjectors.add(new RateLimitBeanInjector());
}

Expand Down

0 comments on commit 4ab49d9

Please sign in to comment.