Spring Boot 簡介(入門篇)
1.什么是SpringBoot
Spring Boot是由Pivotal團(tuán)隊(duì)提供的全新框架,其設(shè)計目的是用來簡化新Spring應(yīng)用的初始搭建以及開發(fā)過程。該框架使用了特定的方式來進(jìn)行配置,
從而使開發(fā)人員不再需要定義樣板化的配置。通過這種方式,Spring Boot致力于在蓬勃發(fā)展的快速應(yīng)用開發(fā)領(lǐng)域(rapid application development)成為領(lǐng)導(dǎo)者。
2.SpringBoot特性
1).創(chuàng)建獨(dú)立的Spring項(xiàng)目
2).內(nèi)置Tomcat和Jetty容器
3).提供一個starter POMs來簡化Maven配置
4).提供了一系列大型項(xiàng)目中常見的非功能性特性,如安全、指標(biāo),健康檢測、外部配置等
5).完全沒有代碼生成和xml配置文件
3.SpringBoot運(yùn)行環(huán)境
Spring Boot最新版可以運(yùn)行在Java6+的環(huán)境下,但是Spring官方建議使用Java8。
4.Servlet 容器
| Name | Servlet Version |
|---|---|
|
Tomcat 8.5 |
3.1 |
|
Jetty 9.4 |
3.1 |
|
Undertow 1.3 |
3.1 |
5.SpringBoot支持哪些應(yīng)用
Table 1》. spring Boot application starters
| Name | Description |
|---|---|
|
Starter for building MVC web applications using Thymeleaf views |
|
|
Starter for using Couchbase document-oriented database and Spring Data Couchbase |
|
|
Starter for JMS messaging using Apache Artemis |
|
|
Starter for using Spring Web Services |
|
|
Starter for using Java Mail and Spring Framework's email sending support |
|
|
Starter for using Redis key-value data store with Spring Data Redis and the Jedis client |
|
|
Starter for using MongoDB document-oriented database and Spring Data MongoDB Reactive |
|
|
Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded Container |
|
|
Starter for JMS messaging using Apache ActiveMQ |
|
|
Starter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch |
|
|
Starter for using Spring Integration |
|
|
Starter for testing Spring Boot applications with libraries including JUnit, Hamcrest and Mockito |
|
|
Starter for building WebFlux applications using Spring Framework's Reactive Web support |
|
|
Starter for using JDBC with the Tomcat JDBC connection pool |
|
|
Starter for building web applications using Spring Mobile |
|
|
Starter for using Java Bean Validation with hibernate Validator |
|
|
Starter for building hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS |
|
|
Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to |
|
|
Starter for using Neo4j graph database and Spring Data Neo4j |
|
|
Starter for using Spring Data LDAP |
|
|
Starter for building WebSocket applications using Spring Framework's WebSocket support |
|
|
Starter for aspect-oriented programming with Spring AOP and AspectJ |
|
|
Starter for using Spring AMQP and Rabbit MQ |
|
|
Starter for using Cassandra distributed database and Spring Data Cassandra |
|
|
Starter for using Spring Social Facebook |
|
|
Starter for JTA transactions using Atomikos |
|
|
Starter for using Spring Security |
|
|
Starter for building MVC web applications using Mustache views |
|
|
Starter for using Spring Data JPA with Hibernate |
|
|
Core starter, including auto-configuration support, logging and YAML |
|
|
Starter for building MVC web applications using Groovy Templates views |
|
|
Starter for building MVC web applications using FreeMarker views |
|
|
Starter for using Spring Batch |
|
|
Stater for using Spring Social LinkedIn |
|
|
Starter for using Spring Framework's caching support |
|
|
Starter for using the Apache Solr search platform with Spring Data Solr |
|
|
Starter for using MongoDB document-oriented database and Spring Data MongoDB |
|
|
Starter for using jOOQ to access SQL databases. An alternative to |
|
|
Spring Boot Narayana JTA Starter |
|
|
Starter for using Spring Cloud Connectors which simplifies connecting to services in cloud platforms like Cloud Foundry and Heroku |
|
|
Starter for JTA transactions using Bitronix |
|
|
Starter for using Spring Social Twitter |
|
|
Starter for exposing Spring Data repositories over REST using Spring Data REST |
Table 2》. Spring Boot production starters
| Name | Description |
|---|---|
|
Starter for using Spring Boot's Actuator which provides production ready features to help you monitor and manage your application |
Table 3》. Spring Boot technical starters
| Name | Description |
|---|---|
|
Starter for using Undertow as the embedded servlet container. An alternative to |
|
|
Starter for using Jetty as the embedded servlet container. An alternative to |
|
|
Starter for using Reactor Netty as the embedded reactive HTTP server. |
|
|
Starter for logging using Logback. Default logging starter |
|
|
Starter for using Tomcat as the embedded servlet container. Default servlet container starter used by |
|
|
Starter for using Log4j2 for logging. An alternative to |
以上所述是小編給大家介紹的Spring Boot 簡介(入門篇),希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
java實(shí)現(xiàn)支付寶支付接口的調(diào)用
本文主要介紹了java實(shí)現(xiàn)支付寶支付接口的調(diào)用,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2022-07-07
java讀寫excel文件實(shí)現(xiàn)POI解析Excel的方法
在日常工作中,我們常常會進(jìn)行Excel文件讀寫操作,這篇文章主要介紹了java讀寫excel文件實(shí)現(xiàn)POI解析Excel的方法,實(shí)例分析了java讀寫excel的技巧,非常具有實(shí)用價值,需要的朋友可以參考下2018-10-10
java 使用memcached以及spring 配置memcached完整實(shí)例代碼
本篇文章主要介紹了java 使用memcached以及spring 配置memcached完整實(shí)例代碼,具有一定的參考價值,有興趣的可以了解一下2017-07-07
mac下修改idea的jvm運(yùn)行參數(shù)解決idea卡頓的情況
這篇文章主要介紹了mac下修改idea的jvm運(yùn)行參數(shù)解決idea卡頓的情況,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教2023-12-12
如何基于SpringMVC實(shí)現(xiàn)斷點(diǎn)續(xù)傳(HTTP)
這篇文章主要介紹了如何基于SpringMVC實(shí)現(xiàn)斷點(diǎn)續(xù)傳(HTTP),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2020-01-01
java小知識之查詢數(shù)據(jù)庫數(shù)據(jù)的元信息
這篇文章主要給大家介紹了關(guān)于java小知識之查詢數(shù)據(jù)庫數(shù)據(jù)的元信息,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2021-10-10
Java亂碼問題解決方法_動力節(jié)點(diǎn)Java學(xué)院整理
開發(fā)java應(yīng)用出現(xiàn)亂碼是很常見的,畢竟現(xiàn)在unicode的使用還不是很廣泛,下面給大家分享Java亂碼問題解決方法,感興趣的朋友一起看看吧2017-07-07
Spring的@Value注入復(fù)雜類型(通過@value注入自定義類型)
Spring的@Value可以注入復(fù)雜類型嗎?今天教你通過@value注入自定義類型。如有錯誤或未考慮完全的地方,望不吝賜教2021-12-12

