@Configuration
@EnableScheduling
public class Timers {
@Scheduled(cron = "*/5 * * * * ?")
public void scan(){
System.out.println("hello world");
}
}
重要的类上面的两个注解
@Configuration
@EnableScheduling
public class Timers {
@Scheduled(cron = "*/5 * * * * ?")
public void scan(){
System.out.println("hello world");
}
}
重要的类上面的两个注解