MISBoot低代码开发平台

微服务配置

Config微服务配置
    server:
      port: 9780                       //需要修改成自己的端口号
      redis-host: 192.168.1.203        //需要修改成自己的ip地址
      rabbitmq-host: 192.168.1.203     //需要修改成自己的ip地址
    spring:
      application:
        name: config
      cloud:
        config:
          server:
            #本地配置文件位置
            #native:
              #search-locations: E:\wwwroot\java\ewsdSC\repository
            git:
              #uri: file:///E:\wwwroot\java\ewsdSC\repository
              uri: http://git.zuoyour.com/emis/repository.git
              username: repository@zuoyour.com        //修改成自己的账号
              password: 123456                        //修改成自己的密码
              #uri: https://github.com/xvpindex/ewsdSC-config-repository.git
              #username: xxxx@qq.com
              #password: 123456
              #basedir: E:\wwwroot\java\ewsdSC\config\basedir
              search-paths: common,base,production,test,zhaoxiace,songjingmin,zhuyongjing,fengkai,luozhangheng,tangyuting,nirec,temp # git仓库地址下的相对地址,配置多个用,分割。
              # 指定搜索路径,如果有多个路径则使用,分隔
              #searchPaths: cloud-config-git/simple2/configspecial,cloud-config-git/simple2/default
              # 对于使用git,svn做为后端配置,从远程库获取配置文件,需要存储到本地文件
              #basedir: /tmp/spring-cloud-repo
              # 配置中心通过git从远程git库,有时本地的拷贝被污染,这时配置中心无法从远程库更新本地配置,设置force-pull=true,则强制从远程库中更新本地库
              force-pull: true
      redis:
        database: 0
        host: ${server.redis-host}
        port: 6379
        password: Ewsd@159357
      session:
        store-type: redis
      rabbitmq:
        host: ${server.rabbitmq-host}
        port: 5672          //需要修改成自己的端口号
        username: customer  //需要修改自己的账号
        password: 123456    //需要修改成自己的密码
      #读取本地配置
      #profiles:
        #active: native
    eureka:
      client:
        service-url:
          defaultZone: http://customer:123456@192.168.1.103:9760/eureka/       //需要修改成自己的账号密码,ip地址,端口号
      instance:
        # 配置使用主机名注册服务
        #hostname: www.ewsd.cn
        # 优先使用IP地址方式进行注册服务
        prefer-ip-address: true
        #ip-address: http://www.ewsd.cn
        #instanceId: ${spring.application.name}:${server.address}:${server.port}
    management:
      endpoints:
        web:
          exposure:
            include: "*"
        
文档更新时间: 2019-11-20 12:42 作者:佐佑时代