package com.mortals.xhx;

import com.mortals.framework.springcloud.boot.BaseWebApplication;
import com.mortals.xhx.utils.stream.messaging.ProcessTaskSink;
import com.mortals.xhx.utils.stream.messaging.ProcessTaskSource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.ImportResource;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableFeignClients
@SpringBootApplication(scanBasePackages = {"com.mortals"})
@ServletComponentScan("com.mortals")
@ImportResource(locations = {"classpath:config/spring-config.xml"})
@EnableBinding({ProcessTaskSink.class})
public class ManagerApplication extends BaseWebApplication {

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


}
