package com.liangjian.dataplatform.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: 黄子奇
 * @Date: 2019/8/24 9:17
 */
@SpringBootApplication
@ServletComponentScan
@EnableScheduling
@EntityScan("com.liangjian.dataplatform.member.entity.*.*")
public class MemberApplication {
    public static void main(String... args)
    {
        //es 关闭processors，给spirng-data-es用的
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        //热部署开关:true表示开启,false表示关闭
        System.setProperty("spring.devtools.restart.enabled","true");
        SpringApplication.run(MemberApplication.class, args);
    }
}
