@@ -0,0 +1,1137 @@
+package com.spring.cloud.demo;%0A%0Aimport org.springframework.beans.factory.annotation.Value;%0Aimport org.springframework.boot.SpringApplication;%0Aimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.SpringBootApplication;%0Aimport org.springframework.cloud.context.config.annotation.RefreshScope;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0A@Configuration%0A@EnableAutoConfiguration%0A@RestController%0A@SpringBootApplication%0A@RefreshScope%0Apublic class ConfigClient %7B%0A%09%0A%09@Value(%22$%7Bmysqldb.datasource.url%7D%22)%0A%09private String url;%0A%09@Value(%22$%7Bredis.host%7D%22)%0A%09private String host;%0A %09@Value(%22$%7Bredis.port%7D%22)%0A%09private String port;%0A%09@RequestMapping(value = %22/db%22)%0A%09public String db() %7B%0A%09%09return %22DB url:%22 + url;%0A%09%7D%0A%09@RequestMapping(value = %22/redis%22)%0A%09public String redis() %7B%0A%09%09return %22redis.host:%22 + host + %22 ,redis.port:%22 + port;%0A%09%7D%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09SpringApplication.run(ConfigClient.class, %22--server.port=8081%22);%0A%09%7D%0A%7D%0A

update class name