@Configuration
@MapperScan("com.example.mapper")
@EnableScheduling
public class SpringBootConfig {
}
@Scheduled(cron="0 0 2 * * ?")
private void update1(){
System.out.println("123");
}
@Scheduled(cron="0/10 * * * * ?")
private void update2(){
System.out.println("124");
}