application.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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: debug
  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://120.78.215.178:3306/rz_market_operate_ppwfund?allowMultiQueries=true&useSSL=false&rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull
  29. username: ai_dept_qiuruifeng
  30. password: mx9ArjZIi2I8PubHK
  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. email:
  48. file:
  49. path: /home/wwwroot/mo_report_file
  50. report:
  51. # ai解析远程地址
  52. ai-parser-url: http://localhost:8088/upload-filepath
  53. # ocr文字识别接口地址
  54. ocr-parser-url: http://localhost:8088/parse-img
  55. # 读写 seen 标记
  56. read-write-seen: false