application.yml 1.79 KB
###################  api配置  ###################
api:
  xss-open: true #是否开启xss跨站脚本攻击防护支持 (true/false)
  requestLimit: 30 #接口每秒请求限制
  baseUrl: @profiles.baseUrl@ #审批系统地址
  ocrUrl: @profiles.ocrUrl@ #资料预审接口地址
  apiUrl: @profiles.apiUrl@ #资料预审配置接口地址
  mq: @profiles.mq@       #mq监听队列名称
scheduled: #定时任务推送
  monitorCron: 0 0/5 * * * ?
  monitorOpen: true
  ###################  项目启动端口  ################### ocrUrl: https://api.egovrobot.com/rocr/ http://192.168.2.180:8099
server:
  port: @profiles.server.port@         #端口
  tomcat:
    max-threads: 800   #tomcat最大线程数,默认为200
    uri-encoding: utf-8
    max-http-form-post-size: 10MB
  servlet:
    context-path: /

###################  日志配置  ###################
logging:
  level:
    com.lilosoft: debug
    org.springframework: warn

###################  spring配置  ###################
spring:
  http:
    encoding:
      force: true
      charset: UTF-8
      enabled: true
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
    serialization:
      write-dates-as-timestamps: false
  jms:
    pub-sub-domain: false    #false点对点队列模式 true订阅模式
    template:
      delivery-mode: persistent #持久化
  activemq:
    brokerUrl: @profiles.activemq.brokerUrl@
    user: root
    password: lilo!@#2020@lilosoft!@#2021
    close-timeout: 15s    # 在考虑结束之前等待的时间
    in-memory: false      # 默认代理URL是否应该在内存中。如果指定了显式代理,则忽略此值。
    pool:
      enabled: false
      # max-connections: 10
    packages:
      trust-all: true
application:
  log:
    level: @profiles.log.level@
    path: @profiles.log.path@