快速安装 服务器之Apollo单机部署( 二 )

apollo参数;
-Dapollo.configService=http://服务器外网地址:8080

快速安装 服务器之Apollo单机部署

文章插图
需要对应起来,新增配置key:service,value:hello world,并且是已发布
快速安装 服务器之Apollo单机部署

文章插图
public class TestController {@Value(value = "https://www.huyubaike.com/biancheng/${service}")private String name;@RequestMapping("test")public String test(){return "hello world -->"+name;}}【快速安装 服务器之Apollo单机部署】

经验总结扩展阅读