1. SpringBoot启动主程序类:
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.taobao.pandora.boot.PandoraBootstrap;
/**
* Pandora Boot应用的入口类
* <p>LogUtil *
* @author xx
*/
@SpringBootApplication(scanBasePackages = {"com.alibaba.algo","com.xx.xx","com.xx.xx"})
public class Application {
public static void main(String[] args) {
PandoraBootstrap.run(args);
SpringApplication.run(Application.class, args);
PandoraBootstrap.markStartupAndWait();
}
}
注解函数:
@SpringBootApplication 源码