spring: profiles: active: dev mvc: pathmatch: matching-strategy: ant_path_matcher # security: # jwt: # # 自定义 secretKey # secretKey: VzMzUUNCY0g2cnRVQkR6OU5kTnVUY2tkZWlodFdkc0dpdVRwTmk4dnRWc2lKYmllRnEyekVLV29NWEJIM2IzSm1wRllacWdndFZmZFY0UTk0RmhxQm4zR1R4 # expiryInHours: 2400 application: name: sp-smarttrade main: allow-circular-references: true allow-bean-definition-overriding: true # 定时任务 quartz: jdbc: initialize-schema: never job-store-type: jdbc properties: org: quartz: scheduler: instanceId: AUTO instanceName: clusteredScheduler jobStore: useProperties: true isClustered: true maxMisfiresToHandleAtATime: 1 tablePrefix: qrtz_ # class: org.quartz.impl.jdbcjobstore.LocalDataSourceJobStore class: org.quartz.impl.jdbcjobstore.JobStoreTX clusterCheckinInterval: 3600000 driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate threadPool: threadCount: 10 threadPriority: 5 threadsInheritContextClassLoaderOfInitializingThread: true class: org.quartz.simpl.SimpleThreadPool # 在上下文中没有Executor bean的情况下,Spring Boot会自动配置ThreadPoolTaskExecutor,并使用合理的默认值,这些默认值可以自动关联到异步任务执行(@EnableAsync)和Spring MVC异步请求处理。 #如果您已经在上下文中定义了一个自定义执行器,那么常规任务执行(即@EnableAsync)将透明地使用它,但是Spring MVC支持将不会被配置,因为它需要一个AsyncTaskExecutor实现(名为applicationTaskExecutor)。根据您的目标安排,您可以将执行程序更改为ThreadPoolTaskExecutor,或者定义一个ThreadPoolTaskExecutor和一个包装自定义执行程序的AsyncConfigurer。 task: execution: pool: core-size: 10 max-size: 100 queue-capacity: 50 # 多租户:无 tenant_id 列的表须列入忽略,否则 SQL 会拼 tenant_id 导致 Unknown column storlead: tenant: ignore-tables: - system_wechat_config