ProcessorConfig.java 450 B

123456789101112
  1. package org.ccframe.app;
  2. import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
  3. import org.springframework.context.annotation.ComponentScan;
  4. import org.springframework.context.annotation.Configuration;
  5. @Configuration
  6. @ConditionalOnProperty(value = "app.init.qserver", havingValue = "true")
  7. @ComponentScan({"org.ccframe.subsys.*.job"}) //如果设置为队列和定时节点,才会跑Job
  8. public class ProcessorConfig {
  9. }