spring boot中实现配置和使用定时器

简单两步,实如今spring boot中配置和使用定时器:java 一、在入口类中加入@EnableScheduling注解(即springboot启动类添加注解@EnableScheduling):git [java]  view plain  copy @SpringBootApplication   @EnableScheduling   public class MySpringBootA
相关文章
相关标签/搜索