记录一次spring定时任务,需要多线程执行时遇到的坑

项目中需要使用定时任务开启多个线程处理组装报文业务,但是在spring.xml中配置了 <task:annotation-driven executor="myexecutor" />    <task:executor id="myexecutor" pool-size="2"  />  并不起作用,依然是单线程执行,后查看spring源码得知,需要配置scheduler,如果不配置schedu
相关文章
相关标签/搜索