TaskApp.java
974 Bytes
package com.viontech.fanxing.task;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* .
*
* @author 谢明辉
* @date 2021/6/11
*/
@EnableDiscoveryClient
@EnableScheduling
@SpringBootApplication(scanBasePackages = "com.viontech.fanxing")
@EnableFeignClients(basePackages = "com.viontech.fanxing")
@Slf4j
@MapperScan(basePackages = "com.viontech.fanxing.task.mapper")
public class TaskApp {
public static void main(String[] args) {
try {
SpringApplication.run(TaskApp.class, args);
} catch (Exception e) {
log.error("task app start error", e);
}
}
}