【碼同學】高級安全測試實戰(zhàn)班
2022-12-19 15:47 作者:janet19961217 | 我要投稿
public ConfigurableApplicationContext run(String... args) {
? ?//時間監(jiān)控
? ?StopWatch stopWatch = new StopWatch();
? ?stopWatch.start();
? ?ConfigurableApplicationContext context = null;
? ?Collection<SpringBootExceptionReporter> exceptionReporters = new ArrayList<>();
? ?//java.awt.headless是J2SE的一種模式用于在缺少顯示屏、鍵盤或者鼠標時的系統(tǒng)配置,很多監(jiān)控工具如jconsole 需要將該值設(shè)置為true,系統(tǒng)變量默認為true
? ?configureHeadlessProperty();
? ?//獲取spring.factories中的監(jiān)聽器變量,args為指定的參數(shù)數(shù)組,默認為當前類
標簽: