Config配置总控中心搭建
    1.新建cloud-config-center-3344模块
    2.hosts文件配置127.0.0.1 config3344.com
    3.application.yml配置如下

    1. server:
    2. port: 3344
    3. spring:
    4. application:
    5. name: cloud-config-center #注册微服务名
    6. cloud:
    7. config:
    8. server:
    9. git:
    10. uri: https://github.com/zhanchuansen/springcloud-config.git #GitHub上面的git仓库名称
    11. search-paths: #搜索目录
    12. - spring-config
    13. label: master #读取分支
    14. eureka:
    15. client:
    16. register-with-eureka: true
    17. fetch-registry: true
    18. service-url:
    19. defaultZone: http://eureka7001.com:7001/eureka,http://eureka7002.com:7002/eureka