bootstrap.yml 1.32 KB
spring:
  application:
    name: ms-data-circulation-portal-service
  cloud:
    nacos:
      #配置中心
      config:
        server-addr: nacos-cluster-service-develop.nacos-cluster:8848
        file-extension: yaml
        group: test
        namespace: daop-lt
        # 开启nacos自动刷新,如果这个配置没有或者为false会导致配置不能自动刷新(auto-refresh、enable-remote-sync-config两者缺一不可)
        auto-refresh: true
        # 允许nacos服务端向本地同步配置
        enable-remote-sync-config: true
      #注册中心
      discovery:
        enabled: true
        server-addr: nacos-cluster-service-develop.nacos-cluster:8848
        group: test
        namespace: daop-lt
        metadata:
          code: "006"
          user:
            name: nacos
            password: nacos
          management:
            context-path: /actuator
    #接口限流
    sentinel:
      transport:
        #        port: 7777
        dashboard: sentinel-service.nacos-cluster:8858
        #取消懒加载
      eager: true
management:
  endpoint:
    health:
      show-details: always
  endpoints:
    web:
      exposure:
        include: '*'
  ###暂时禁用rabbit的健康检查
  health:
    rabbit:
      enabled: false
    sentinel:
      enabled: false
feign:
  sentinel:
    enabled: true