bootstrap.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. spring:
  2. application:
  3. name: in-cloud
  4. profiles:
  5. active: local
  6. quartz:
  7. job-store-type: jdbc
  8. # 是否等待任务执行完毕后,容器才会关闭
  9. wait-for-jobs-to-complete-on-shutdown: true
  10. scheduler-name: SpringBootDemoScheduler
  11. properties:
  12. org:
  13. quartz:
  14. scheduler:
  15. instanceName: SC_Scheduler
  16. instanceId: AUTO
  17. threadPool:
  18. # 线程数量
  19. threadCount: 5
  20. # 线程优先级
  21. threadPriority: 5
  22. # 线程池中线程名称的前缀
  23. threadNamePrefix: test-thread
  24. # 加载任务代码的ClassLoader是否从外部继承
  25. threadsInheritContextClassLoaderOfInitializingThread: true
  26. jobStore:
  27. dataSource: incloud
  28. # 最大能忍受的触发超时时间,如果超时则认为“失误”
  29. misfireThreshold: 5000
  30. # 选择JDBC的存储方式
  31. class: org.quartz.impl.jdbcjobstore.JobStoreTX
  32. # 类似于Hibernate的dialect,用于处理DB之间的差异,StdJDBCDelegate能满足大部分的DB(授权)
  33. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  34. # 在调度流程的第一步,也就是拉取待即将触发的triggers时,是上锁的状态,即不会同时存在多个线程拉取到相同的trigger的情况,也就避免的重复调度的危险。参考:https://segmentfault.com/a/1190000015492260
  35. acquireTriggersWithinLock: true
  36. dataSource:
  37. incloud:
  38. driver: com.mysql.cj.jdbc.Driver
  39. URL: jdbc:mysql://127.0.0.1:3306/incloud?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8
  40. user: root
  41. password: root
  42. minio:
  43. pull:
  44. url: https://117.78.19.70:9010/client/getFileLogsForAio/
  45. fileurl: https://117.78.19.70:9010/client/getFileById?id=
  46. fileDir: D:\\fileInit\\temp
  47. fileurl: D:\\fileInit\\minlo
  48. host: http://api.jiayuepowertech.com:9013
  49. user: minio
  50. pwd: yanfa*3377
  51. logurl: http://117.78.19.70:9009/client/saveFileLogsForAio
  52. logging:
  53. config: classpath:logback.xml
  54. server:
  55. port: 8801
  56. ---
  57. spring:
  58. config:
  59. activate:
  60. on-profile: local
  61. cloud:
  62. nacos:
  63. discovery:
  64. server-addr: 127.0.0.1:8848
  65. namespace: local
  66. config:
  67. server-addr: ${spring.cloud.nacos.discovery.server-addr}
  68. file-extension: yml
  69. namespace: local
  70. management:
  71. endpoint:
  72. web:
  73. exposure:
  74. include: '*'