package com.bbd.bpm;

import com.bbd.bpm.util.ContextUtils;
import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
@MapperScan(basePackages = "com.bbd.bpm.dao")
public class BpmBackendApplication {
       //这个是启动方法。
	public static void main(String[] args) {

		ConfigurableApplicationContext context = SpringApplication.run(BpmBackendApplication.class, args);
		ContextUtils.setApplicationContext(context);

	}

}

