application.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. server:
  2. port: 9933
  3. undertow:
  4. threads:
  5. # io线程数,主要执行费阻塞的任务
  6. io: 8
  7. # 阻塞任务线程池
  8. worker: 50
  9. # 每块buffer的空间大小,越小的空间被利用越充分
  10. buffer-size: 1024
  11. # 是否分配的直接内存
  12. direct-buffers: true
  13. error:
  14. include-binding-errors: on_param
  15. include-stacktrace: on_param
  16. # 日志配置
  17. logging:
  18. level:
  19. com.smppw.modaq.domain.mapper: info
  20. config: classpath:logback.xml
  21. spring:
  22. application:
  23. name: mo-daq
  24. datasource:
  25. # 指定为HikariDataSource
  26. type: com.zaxxer.hikari.HikariDataSource
  27. driver-class-name: com.mysql.cj.jdbc.Driver
  28. url: jdbc:mysql://47.112.140.222:3306/rz_combination_master?allowMultiQueries=true&useSSL=false&rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull
  29. username: rz_cm_master
  30. password: TbLuENLK
  31. # hikari连接池配置 对应 HikariConfig 配置属性类
  32. hikari:
  33. pool-name: HikariCP-daq
  34. # 连接池最大连接数,默认是10
  35. maximum-pool-size: 10
  36. # 此属性控制从池返回的连接的默认自动提交行为,默认值:true
  37. auto-commit: true
  38. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  39. max-lifetime: 900000
  40. # 数据库连接超时时间,设置为300秒超时
  41. connection-timeout: 300000
  42. # keepalive time
  43. keepalive-time: 60000
  44. jackson:
  45. date-format: yyyy-MM-dd HH:mm:ss
  46. time-zone: Asia/Shanghai
  47. servlet:
  48. multipart:
  49. enabled: true
  50. file-size-threshold: 10MB
  51. email:
  52. file:
  53. path: /home/wwwroot/mo_report_file
  54. # report:
  55. # # ai解析远程地址
  56. # ai-parser-url: http://localhost:8088/upload-filepath
  57. # # ocr文字识别接口地址
  58. # ocr-parser-url: http://localhost:8088/parse-img
  59. # 读写 seen 标记
  60. read-write-seen: false