application.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. spring:
  2. profiles:
  3. active: dev
  4. servlet:
  5. multipart:
  6. max-file-size: 50MB
  7. max-request-size: 200MB
  8. tomcat:
  9. max-upload-size: 200MB
  10. mvc:
  11. pathmatch:
  12. matching-strategy: ant_path_matcher
  13. application:
  14. name: sp-sales
  15. main:
  16. allow-circular-references: true
  17. allow-bean-definition-overriding: true
  18. # 定时任务
  19. # quartz:
  20. # jdbc:
  21. # initialize-schema: never
  22. # job-store-type: jdbc
  23. # properties:
  24. # org:
  25. # quartz:
  26. # dataSource:
  27. # myDS: # 设置数据源名称
  28. # driver: com.mysql.jdbc.Driver
  29. # URL: jdbc:mysql://192.168.1.93:39091/sp_sales_dev?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&noDatetimeStringSync=true&serverTimezone=Asia/Shanghai
  30. # username: root
  31. # password: DW8YRN*5!6u&Agt7N
  32. # scheduler:
  33. # instanceId: AUTO
  34. # instanceName: quartzScheduler
  35. # jobStore:
  36. # useProperties: true
  37. # isClustered: true
  38. # maxMisfiresToHandleAtATime: 1
  39. # tablePrefix: qrtz_
  40. # dataSource: myDS
  41. ## class: org.quartz.impl.jdbcjobstore.LocalDataSourceJobStore
  42. # class: org.quartz.impl.jdbcjobstore.JobStoreTX
  43. # clusterCheckinInterval: 3600000
  44. # driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  45. # threadPool:
  46. # threadCount: 10
  47. # threadPriority: 5
  48. # threadsInheritContextClassLoaderOfInitializingThread: true
  49. # class: org.quartz.simpl.SimpleThreadPool
  50. # 在上下文中没有Executor bean的情况下,Spring Boot会自动配置ThreadPoolTaskExecutor,并使用合理的默认值,这些默认值可以自动关联到异步任务执行(@EnableAsync)和Spring MVC异步请求处理。
  51. #如果您已经在上下文中定义了一个自定义执行器,那么常规任务执行(即@EnableAsync)将透明地使用它,但是Spring MVC支持将不会被配置,因为它需要一个AsyncTaskExecutor实现(名为applicationTaskExecutor)。根据您的目标安排,您可以将执行程序更改为ThreadPoolTaskExecutor,或者定义一个ThreadPoolTaskExecutor和一个包装自定义执行程序的AsyncConfigurer。
  52. task:
  53. execution:
  54. pool:
  55. core-size: 10
  56. max-size: 100
  57. queue-capacity: 50
  58. swagger:
  59. production: false
  60. basic:
  61. enable: false
  62. username: lingcun
  63. password: l123@.com