标签:schedule cep expected public adp thread exception ret exce
java.lang.IllegalStateException: Unexpected use of scheduler.
在启动类加:
@Bean public ThreadPoolTaskScheduler taskScheduler(){ ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler(); taskScheduler.setPoolSize(10); taskScheduler.initialize(); return taskScheduler; }
springboot定时任务出错 Unexpected use of scheduler.
标签:schedule cep expected public adp thread exception ret exce
原文地址:https://www.cnblogs.com/james-roger/p/11011625.html