application-prod.yml 5.49 KB
spring:
  application:
    name: base
  datasource:
    dynamic:
      datasource:
        master:
#          kingbase人大金仓 连接驱动
#          username: SYSTEM
#          password: 123456
#          driver-class-name: com.kingbase8.Driver
#          url: jdbc:kingbase8://192.168.1.11:54321/eip820
#          mysql 连接驱动
          username: root
          password: root
          driver-class-name: com.mysql.cj.jdbc.Driver
          url: jdbc:mysql://127.0.0.1:3306/eip8.2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&autoReconnect=true&failOverReadOnly=false&maxReconnects=10&allowMultiQueries=true

#          oracle 连接驱动
#          username: EIP8.2
#          password: EIP8.2
          #          oracle 连接驱动
#          driver-class-name: oracle.jdbc.OracleDriver
#          url: jdbc:oracle:thin:@192.168.1.222:1521:ORCL

#          pgsql 连接驱动
#          driver-class-name: org.postgresql.Driver
#          url: jdbc:postgresql://192.168.1.100:5432/eip820

#          dameng 连接驱动
#          driver-class-name: dm.jdbc.driver.DmDriver
#          url: jdbc:dm://192.168.1.120:5236/EIP820?dbmdChkPrv=false

          druid:
            filters: stat
            # druid oracle 验证语句
#            validation-query: select 1 from dual
            connectionProperties:
              resultSetMetaDataOptions: 1
            wall:
              #开启druid允许执行多条SQL
              multiStatementAllow: true
            #public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIobgl5Uq9fEW2V6dLXqWJKDUZGAA3CCVasj1Yxge3STiWZ1plhxBUQgNgyRYeEUrUHzYPozfm0kL/zLlHMzcnUCAwEAAQ==
  redis:
    database: 11
    host: 192.168.1.100
    port: 6379
    password:
  activemq:
    #broker-url: tcp://192.168.1.211:61616
    in-memory: true # 单服务部署时可以使用内嵌的mq服务,此时需要注释掉broker-url配置
    user:
    password:
  kafka:
    bootstrap-servers: 127.0.0.1:9092
  rocketmq:
    namesrvAddr: 192.168.1.31:9876

server:
  port: 8088

# 1. redis.enable=false 使用caffeine作为缓存  2. redis.enable=true 且 redis.caffeine.enabled=false  仅仅使用redis作为缓存 3.  redis.enable=true 且 redis.caffeine.enabled=true 将开始二级缓存
redis:
  enable: false
  caffeine:
    enabled: false # 是否使用二级缓存  前提redis 需要开启

jms:
  enable: true
  init-queue: true
  bpmModel: true
  bpmRuntime: true
  portal: true
  uc: true
  form: true

# 是否使用mockMvc进行微服务之间的模拟调用 默认为true
assembly:
  enableMockMvc: true

# feign配置
feign:
  hystrix:
    enabled: false
  httpclient:
    enabled: false
  mockmvcclient: eip-auth,eip-bpm-model,eip-bpm-runtime,eip-form,eip-portal,eip-uc,api-manager-eip-*

# 是否启用basic认证(注意开启时可以通过auth0请求接口,安全性较低)
jwt.basic: false

mybatis-plus:
  configuration:
    # 打印执行的SQL语句及返回的数据
    #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
druid:
  stat:
    # 是否显示druid监控页面
    enable: true

system:
  flow:
    tasksInStartResult: false # 启动流程后马上查询该实例属于发起人的待办任务
captcha:
  # 是否启用图形验证码 0-不启用;1-启用且限制失败次数;2-一直启用
  isEnabled: 0
  maxFailedCount: 5
external:
  # 第三方应用扫码登录跳转地址,必须为域名
  redirectUri: http://hteip.vaiwan.com/front/login

security:
  enabled: false
  ignoreUnknownFields: false #RequestBody接口的参数是否可以忽略不认识的属性 如果忽略有可能造成API成批分配的漏洞 false 忽略 true 不忽略
  sql:
    excludes:
      - /swagger-resources/configuration/ui
      - /swagger-resources
      - /swagger-resources/configuration/security
      - /swagger-ui.html
      - /proxy.stream
      - /hystrix.stream
      - /druid/*
      - /hystrix/*
  xss:
    excludes:
      - /form/form/v1/saveForm # 保存表单设计
      - /auth
      - /form/form/v1/saveFormJs # 保存表单设计引入的脚本
      - /portal/sysIndexLayoutManage/sysIndexLayoutManage/v1/saveLayout #门户设计保存门户
      - /portalNewsNotice/v1/* #保存新闻公告非外部链接使用富文本时
      - /form/dataTemplate/v1/save #数据应用表单列表的保存
      - /form/dataTemplate/v1/saveTemplate #数据应用表单列表编辑模板的保存
      - /form/query/querySqldef/save #数据应用数据列表的保存
      - /portalAppParam/v1/ #应用模块——pc模块——管理某个模块——应用详情——保存的详情里面有富文本类型时
      - /flow/def/v1/saveProp #流程设计——流程定义——流程的其他设置,保存含有脚本的设置
      - /flow/MsgTemplate/v1/save #流程中心——辅助功能——消息模板保存
      - /runtime/conditionScript/v1/testScript #流程中心——辅助功能——人员脚本-测试脚本
      - /runtime/script/v1/save #流程中心——辅助功能——常用脚本的保存
      - /portal/sysIndexColumn/sysIndexColumn/v1/save #门户设计——保存栏目
      - /runtime/script/v1/executeScript #测试脚本
      - /form/template/v1/save #模板管理(比如宏模板)
      - /portalUrlPermission/v1/insert #外部接口授权
      - /flow/node/v1/saveDefConf #保存流程配置
      - /flow/node/v1/branchConditionSave #分支网关保存
      - /flow/def/v1/webDefSave #保存流程定义
      - /form/formServiceController/v1/importFormAndBo #导入表单和Bo
      - /flow/def/v1/importCheck #表单校验