Spring Boot features

https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-spring-application.html

此篇文章主要介紹了SpringBoot的主要功能:
1.通常通過SpringApplication.run方法啓動;
2.SpringBoot有自己的FailureAnalyzers ,如果需要可以自定義;
3.可以自定義banner,除了banner.txt,還可以是.git,.jpg,.png;
4.可以設置spring:main:banner-mode:“off” 設置banner是否隱藏;
5.自定義SpringApplication參數;
6.通過SpringApplicationBuilder啓動;
7.添加Events and Listeners;
8.通過WebApplicationType 決定ApplicationContext類型;
9.通過org.springframework.boot.ApplicationArguments 可以訪問args參數;
10.通過ApplicationRunner or CommandLineRunner 設置開機啓動任務;
11.Application Exit;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章