Skip to content
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
Expand Up @@ -12,6 +12,7 @@
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.commons.util.InetUtils;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.web.bind.annotation.GetMapping;
Expand Down Expand Up @@ -43,6 +44,9 @@ class AController {
@Autowired
ThreadPoolTaskExecutor taskExecutor;

@Value("${custom.config.value}")
private String configValue;

private String currentZone;

@PostConstruct
Expand Down Expand Up @@ -82,7 +86,7 @@ public String a(HttpServletRequest request) throws ExecutionException, Interrupt
// restTemplate.getForObject("http://sc-B/b", String.class)
// ).get();

return "A" + servcieTag + "[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "]" + " -> " +
return "A" + servcieTag + "[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "]" + "[config=" + configValue + "]" + " -> " +
result;
}

Expand Down
4 changes: 3 additions & 1 deletion mse-simple-demo/A/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ dubbo.registry.check=false

rocketmq.consumer.topic=TEST_MQ
rocketmq.consumer.group=test-a
middleware.mq.address=mqnamesrv:9876
middleware.mq.address=mqnamesrv:9876

custom.config.value=base