• bladex之nacos配置


    blade.yaml

    #服务器配置
    server:
      undertow:
        # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
        io-threads: 4
        # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
        worker-threads: 20
        # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
        buffer-size: 1024
        # 是否分配的直接内存
        direct-buffers: true
    #spring配置
    spring:
      devtools:
        restart:
          log-condition-evaluation-delta: false
        livereload:
          port: 23333
    #feign配置
    feign:
      hystrix:
        enabled: true
      #sentinel:
        #enabled: true
      okhttp:
        enabled: true
      httpclient:
        enabled: false
    #hystrix配置
    hystrix:
      threadpool:
        default:
          coreSize: 300
          maxQueueSize: 1000
          queueSizeRejectionThreshold: 800
      command:
        default:
          execution:
            isolation:
              thread:
                timeoutInMilliseconds: 5000
    #ribbon配置
    ribbon:
      #对当前实例的重试次数
      MaxAutoRetries: 1
      #切换实例的重试次数
      MaxAutoRetriesNextServer: 2
      #请求处理的超时时间
      ReadTimeout: 60000
      #请求连接的超时时间
      ConnectTimeout: 60000
      #对所有操作请求都进行重试
      OkToRetryOnAllOperations: true
    #对外暴露端口
    management:
      endpoints:
        web:
          exposure:
            include: "*"
      endpoint:
        health:
          show-details: always
    #blade配置
    blade:
      xss:
        url:
          exclude-patterns:
            - /weixin
      secure:
        url:
          exclude-patterns:
            - /test/**
        client:
          - client-id: sword
            path-patterns:
              - /sword/**
          - client-id: saber
            path-patterns:
              - /saber/**
      tenant:
        column: tenant_id
        tables:
          - blade_notice
    ==============================
    blade-dev.yaml
    #spring配置
    spring:
      redis:
        ##redis 单机环境配置
        host: localhost
        port: 6379
        password:
        database: 0
        ssl: false
        ##redis 集群环境配置
        #cluster:
        #  nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
        #  commandTimeout: 5000
    #项目模块集中配置
    blade:
      #通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
      datasource:
        dev:
          url: jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
          username: root
          password: root
      document:
        resources:
          - name: 授权模块
            location: /blade-auth
          - name: 工作台模块
            location: /blade-desk
          - name: 系统模块
            location: /blade-system
    =================================================================
    blade-flow-dev.yaml
    #项目模块集中配置
     blade:
       #工作流模块开发生产环境数据库地址
       datasource:
         flow:
           dev:
             url: jdbc:mysql://localhost:3306/bladex_flow?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
             username: root
             password: root
    特别注意:以上配置文件中的密码如果使用!符号开始,可能会导致bladex服务无法启动
  • 相关阅读:
    Wix 教程
    SQL插入數據變成?解決辦法
    DevExpress GridControl使用方法总结【轉】
    Javascript如何判断对象是否相等【轉】
    android StringBuffer类的使用
    Linux命令
    PHP解决中文乱码
    PHP防盗链技术
    0113进度条+ListView+ArrayList+Adapter用法
    Windows中32位(x86)和64位(x64)解释
  • 原文地址:https://www.cnblogs.com/edrp/p/11356519.html
Copyright © 2020-2023  润新知