Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
很奇怪,我将玉米设置为
@Scheduled(cron= "0 0/10 * * * ? ")
它确实每 10 分钟触发一次,但问题是任务每秒运行一次。
这就是 javadoc 所说的:
CronSequenceGenerator
cron 的第一个字段是秒。