關于 SpringBoot
知識點總結了一個思維導圖,分享給大家
什麼是應用啟動器?SpringBoot內建了spring的很多子產品,比如tomcat、redis等等。你用SpringBoot搭建項目,隻需要在pom.xml引入相關的依賴,和在配置檔案中簡單的配置就可以使用相應子產品了。
非常友善,spring boot內建了哪些啟動器呢?
SpringBoot應用啟動器基本的一共有44種,具體如下:
1)spring-boot-starter 這是Spring Boot的核心啟動器,包含了自動配置、日志和YAML。
2)spring-boot-starter-actuator 幫助監控和管理應用。
3)spring-boot-starter-amqp 通過spring-rabbit來支援AMQP協定(Advanced Message Queuing Protocol)。
4)spring-boot-starter-aop 支援面向方面的程式設計即AOP,包括spring-aop和AspectJ。
5)spring-boot-starter-artemis 通過Apache Artemis支援JMS的API(Java Message Service API)。
6)spring-boot-starter-batch 支援Spring Batch,包括HSQLDB資料庫。
7)spring-boot-starter-cache 支援Spring的Cache抽象。
8)spring-boot-starter-cloud-connectors 支援Spring Cloud Connectors,簡化了在像Cloud Foundry或Heroku這樣的雲平台上連接配接服務。
9)spring-boot-starter-data-elasticsearch 支援ElasticSearch搜尋和分析引擎,包括spring-data-elasticsearch。
10)spring-boot-starter-data-gemfire 支援GemFire分布式資料存儲,包括spring-data-gemfire。
11)spring-boot-starter-data-jpa 支援JPA(Java Persistence API),包括spring-data-jpa、spring-orm、hibernate。
12)spring-boot-starter-data-MongoDB 支援MongoDB資料,包括spring-data-mongodb。
13)spring-boot-starter-data-rest 通過spring-data-rest-webmvc,支援通過REST暴露Spring Data資料倉庫。
14)spring-boot-starter-data-solr 支援Apache Solr搜尋平台,包括spring-data-solr。
15)spring-boot-starter-freemarker 支援FreeMarker模闆引擎。
16)spring-boot-starter-groovy-templates 支援Groovy模闆引擎。
17)spring-boot-starter-hateoas 通過spring-hateoas支援基于HATEOAS的RESTful Web服務。
18)spring-boot-starter-hornetq 通過HornetQ支援JMS。
19)spring-boot-starter-integration 支援通用的spring-integration子產品。
20)spring-boot-starter-jdbc 支援JDBC資料庫。
21)spring-boot-starter-jersey 支援Jersey RESTful Web服務架構。
22)spring-boot-starter-jta-atomikos 通過Atomikos支援JTA分布式事務處理。
23)spring-boot-starter-jta-bitronix 通過Bitronix支援JTA分布式事務處理。
24)spring-boot-starter-mail 支援javax.mail子產品。
25)spring-boot-starter-mobile 支援spring-mobile。
26)spring-boot-starter-mustache 支援Mustache模闆引擎。
27)spring-boot-starter-Redis 支援Redis鍵值存儲資料庫,包括spring-redis。
28)spring-boot-starter-security 支援spring-security。
29)spring-boot-starter-social-facebook 支援spring-social-facebook
30)spring-boot-starter-social-linkedin 支援pring-social-linkedin
31)spring-boot-starter-social-twitter 支援pring-social-twitter
32)spring-boot-starter-test 支援正常的測試依賴,包括JUnit、Hamcrest、Mockito以及spring-test子產品。
33)spring-boot-starter-thymeleaf 支援Thymeleaf模闆引擎,包括與Spring的內建。
34)spring-boot-starter-velocity 支援Velocity模闆引擎。
35)spring-boot-starter-web S支援全棧式Web開發,包括Tomcat和spring-webmvc。
36)spring-boot-starter-websocket 支援WebSocket開發。
37)spring-boot-starter-ws 支援Spring Web Services。
Spring Boot應用啟動器面向生産環境的還有2種,具體如下:
38)spring-boot-starter-actuator 增加了面向産品上線相關的功能,比如測量和監控。
39)spring-boot-starter-remote-shell 增加了遠端ssh shell的支援。
最後,Spring Boot應用啟動器還有一些替換技術的啟動器,具體如下:
40)spring-boot-starter-jetty 引入了Jetty HTTP引擎(用于替換Tomcat)。
41)spring-boot-starter-log4j 支援Log4J日志架構。
42)spring-boot-starter-logging 引入了Spring Boot預設的日志架構Logback。
43)spring-boot-starter-tomcat 引入了Spring Boot預設的HTTP引擎Tomcat。
44)spring-boot-starter-undertow 引入了Undertow HTTP引擎(用于替換Tomcat)。
總結
Spring系列的學習筆記和面試題,包含spring面試題、spring cloud面試題、spring boot面試題、spring教程筆記、spring boot教程筆記、2020年Java面試手冊。一共整理了1184頁PDF文檔。
關注公衆号:程式員白楠楠,獲得這份1184頁PDF文檔的spring全家桶資料。