Java Spring Cloud数据流源未按照cron设置运行,而是只运行一次

Java Spring Cloud数据流源未按照cron设置运行,而是只运行一次,java,spring-boot,spring-cloud,spring-cloud-stream,spring-cloud-dataflow,Java,Spring Boot,Spring Cloud,Spring Cloud Stream,Spring Cloud Dataflow,我已经开发了SpringCloud数据,我有Source--Transform--Sink,但是源代码不是每3分钟提取一次,我将此数据作为application.properties-->poller.cron=1-59/2***** 但它似乎只做了一次,而不是每3分钟运行一次从源代码到接收器的转换。任何帮助都是非常感谢的 @SpringBootApplication @EnableBinding(Source.class) public class FetchFromDbApplication

我已经开发了SpringCloud数据,我有Source--Transform--Sink,但是源代码不是每3分钟提取一次,我将此数据作为application.properties-->
poller.cron=1-59/2*****

但它似乎只做了一次,而不是每3分钟运行一次从源代码到接收器的转换。任何帮助都是非常感谢的

@SpringBootApplication
@EnableBinding(Source.class)
public class FetchFromDbApplication {
    Logger logger = LoggerFactory.getLogger(FetchFromDbApplication.class);

    @Autowired
    CustomerService customerService;

    @Bean
    @InboundChannelAdapter(
            value = Source.OUTPUT,
            poller = @Poller(cron = "${poller.cron}", maxMessagesPerPoll = "1")
    )
    public MessageSource<List<Customer>> processCustomer() { this one will run the query and fetch the customers to transform and then to sink}..
@springboot应用程序
@EnableBinding(Source.class)
从数据库应用程序获取的公共类{
Logger Logger=LoggerFactory.getLogger(fetchfromdapplication.class);
@自动连线
客户服务客户服务;
@豆子
@内置通道适配器(
值=Source.OUTPUT,
poller=@poller(cron=“${poller.cron}”,maxMessagesPerPoll=“1”)
)
public MessageSource processCustomer(){这一个将运行查询并获取要转换的客户,然后获取到sink}。。