FanxingDockingGb1400Application.java 962 Bytes
package com.viontech;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

@MapperScan("com.viontech.mapper")
@EnableScheduling
@SpringBootApplication
public class FanxingDockingGb1400Application {

    public static void main(String[] args) {
        SpringApplication.run(FanxingDockingGb1400Application.class, args);
    }

    @Bean
    public TaskScheduler taskScheduler() {
        ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
        taskScheduler.setPoolSize(20);
        taskScheduler.setThreadNamePrefix("scheduled-task-");
        return taskScheduler;
    }
}