application-dev.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. spring:
  2. # 124.70.18.168
  3. # 数据库配置
  4. datasource:
  5. type: com.alibaba.druid.pool.DruidDataSource
  6. driver-class-name: com.mysql.cj.jdbc.Driver
  7. #国电考培服务器
  8. #url: jdbc:mysql://124.70.18.168:3306/yf_exam?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
  9. #华为云
  10. url: jdbc:mysql://124.70.18.168:3306/yf_exam?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
  11. username: root
  12. password: 123456
  13. filters: stat
  14. max-active: 5000
  15. initial-size: 20
  16. max-wait: 6000
  17. min-idle: 1
  18. time-between-eviction-runs-millis: 60000
  19. min-evictable-idle-time-millis: 300000
  20. test-while-idle: true
  21. test-on-borrow: false
  22. test-on-return: false
  23. pool-prepared-statements: true
  24. max-open-prepared-statements: 1000
  25. async-init: true
  26. # Redis配置
  27. redis:
  28. database: 0
  29. #国电考培服务器
  30. #host: 124.70.18.168
  31. #华为云
  32. host: 124.70.18.168
  33. port: 6379
  34. password: gdnxfd123
  35. timeout: 5000
  36. # 定时任务配置
  37. quartz:
  38. #数据库方式
  39. job-store-type: jdbc
  40. # quartz 相关属性配置
  41. properties:
  42. org:
  43. quartz:
  44. scheduler:
  45. instanceName: examScheduler
  46. instanceId: AUTO
  47. jobStore:
  48. class: org.quartz.impl.jdbcjobstore.JobStoreTX
  49. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  50. tablePrefix: qrtz_
  51. isClustered: true
  52. clusterCheckinInterval: 10000
  53. useProperties: false
  54. threadPool:
  55. class: org.quartz.simpl.SimpleThreadPool
  56. threadCount: 10
  57. threadPriority: 5
  58. threadsInheritContextClassLoaderOfInitializingThread: true
  59. # 文档转换
  60. jodconverter:
  61. local:
  62. enabled: true
  63. office-home: C:\Program Files\LibreOffice
  64. max-tasks-per-process: 10
  65. port-numbers: 8100
  66. # 基础配置
  67. ycloud:
  68. # 运行模式,ture为演示/false为正式
  69. demo: false
  70. # false允许用户多处登录,true为T下线
  71. login-tick: false
  72. # 微信登录成功以后,将token推送到这个链接同步登录
  73. login-sync-pc: https://exam.yfhl.net/#/sync/{token}/{roleType}
  74. # 微信登录成功以后,将token推送到这个链接同步登录
  75. login-sync-h5: https://exam-m.yfhl.net/#/pages/login/sync?token={token}
  76. # 微信获取code以后回调此URL
  77. login-redirect: https://exam.yfhl.net/api/common/wx/redirect
  78. # 微信相关配置
  79. wechat:
  80. login:
  81. # 小程序登录appId
  82. mp-app-id:
  83. mp-app-secret:
  84. # 网站登录appId
  85. site-app-id:
  86. site-app-secret:
  87. # 开启文档
  88. swagger:
  89. enable: true
  90. logging:
  91. level:
  92. root: debug
  93. path: logs/${spring.application.name}/