Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change examples #170

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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