简介 目录 评价 推荐
  • 慕斯6292104 2020-03-09
    1-3配置中心(11:09)

    加载的是一个本地目录,

    server端配置

    spring:
      profiles:
        active: native
      cloud:
        config:
          server:
            native:
              search-locations: C:/Users/Administrator/IdeaProjects/springcloud-study01/_conf


    client-dev.yml  对应客户端配置:{name}-{profile}.yml

    spring:
      application:
        name: client
      cloud:
        uri: http://localhost:8081
        profile: dev


    client-dev.yml

    存储的是配置信息,

    user: south
    1回答·575浏览
数据加载中...
开始学习 免费