package com.mortals.flowable;

import com.mortals.framework.springcloud.boot.BaseWebApplication;
import org.flowable.ui.common.security.FlowableUiSecurityAutoConfiguration;
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.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@EnableFeignClients
@ComponentScan(basePackages = {"com.mortals.*","org.flowable.ui.modeler.*"})
@SpringBootApplication(exclude = {FlowableUiSecurityAutoConfiguration.class,SecurityAutoConfiguration.class,SecurityFilterAutoConfiguration.class,ManagementWebSecurityAutoConfiguration.class})

@ImportResource(locations = {"classpath:config/spring-config.xml"})
//@EnableBinding({ProcessTaskSource.class})
public class WorkFlowApplication extends BaseWebApplication {

    public static void main(String[] args) {

        SpringApplication.run(WorkFlowApplication.class, args);
    }


}
