package com.ho.flow;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author fancl
 * @desc: 工作流配置启动
 * @date 2023/1/2
 */
@SpringBootApplication(scanBasePackages = {"com.ho.common.tools" ,"com.ho.flow","com.ho.business"}
,exclude = {SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class}
)
@MapperScan(basePackages = {"com.ho.flow.mapper","com.ho.business.mapper"})
@EnableFeignClients(basePackages = {"com.ho.flow.feignclient"})
@EnableAsync //开启异步
@EnableCaching
public class FlowApplication {
    public static void main(String[] args) {
        SpringApplication.run(FlowApplication.class, args);
    }
}
