package com.ozs.account;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**  
 * @ClassName: AccountManagerApplication 
 * @Description: 账号管理模块启动类
 * @author: IF
 * @date: 2018年6月8日 下午6:07:33  
 */
@MapperScan("com.ozs.account.mapper")
@EnableEurekaClient
@EnableFeignClients
@EnableTransactionManagement
@SpringBootApplication
public class AccountApplication extends SpringBootServletInitializer {
    
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(AccountApplication.class);
    }
    
	public static void main(String[] args) {
		SpringApplication.run(AccountApplication.class, args);
	}
}
