我想每 2 小时触发一次我的函数。
您能提供一下@Scheduled这个案例的表述吗?
@Scheduled
例子:
@Scheduled(cron = "0 0 0 * * ?", zone = "亚洲/加尔各答")
spring spring-boot
spring ×1
spring-boot ×1