Spring Boot 簡(jiǎn)介(入門篇)
1.什么是SpringBoot
Spring Boot是由Pivotal團(tuán)隊(duì)提供的全新框架,其設(shè)計(jì)目的是用來(lái)簡(jiǎn)化新Spring應(yīng)用的初始搭建以及開發(fā)過(guò)程。該框架使用了特定的方式來(lái)進(jìn)行配置,
從而使開發(fā)人員不再需要定義樣板化的配置。通過(guò)這種方式,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).提供一個(gè)starter POMs來(lái)簡(jiǎn)化Maven配置
4).提供了一系列大型項(xiàng)目中常見(jiàn)的非功能性特性,如安全、指標(biāo),健康檢測(cè)、外部配置等
5).完全沒(méi)有代碼生成和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 簡(jiǎn)介(入門篇),希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
相關(guān)文章
Spring容器刷新obtainFreshBeanFactory示例詳解
這篇文章主要為大家介紹了Spring容器刷新obtainFreshBeanFactory示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-03-03SpringBoot2.0整合WebSocket代碼實(shí)例
這篇文章主要介紹了SpringBoot2.0整合WebSocket代碼實(shí)例,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2019-11-11Springboot實(shí)現(xiàn)導(dǎo)入導(dǎo)出Excel的方法
今天帶各位小伙伴學(xué)習(xí)Springboot實(shí)現(xiàn)導(dǎo)入導(dǎo)出Excel的方法,文中有非常詳細(xì)的介紹,對(duì)正在學(xué)習(xí)java的小伙伴們有很好地幫助,需要的朋友可以參考下2021-05-05淺談DetachedCriteria和Criteria的使用方法(必看)
下面小編就為大家?guī)?lái)一篇淺談DetachedCriteria和Criteria的使用方法(必看)。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-05-05SpringCloud 如何使用feign時(shí)的復(fù)雜參數(shù)傳遞
這篇文章主要介紹了SpringCloud 如何使用feign時(shí)的復(fù)雜參數(shù)傳遞方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2021-07-07Java正則表達(dá)式,提取雙引號(hào)中間的部分方法
今天小編就為大家分享一篇Java正則表達(dá)式,提取雙引號(hào)中間的部分方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2018-07-07springboot+quartz以持久化的方式實(shí)現(xiàn)定時(shí)任務(wù)的代碼
這篇文章主要介紹了springboot+quartz以持久化的方式實(shí)現(xiàn)定時(shí)任務(wù)的相關(guān)知識(shí),本文通過(guò)實(shí)例代碼給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2020-07-07mybatis-plus報(bào)錯(cuò)Not Found TableInfoCache異常問(wèn)題
在集成百度uid-generator過(guò)程中,MyBatis-Plus報(bào)錯(cuò)NotFoundTableInfoCache異常,解決方法:檢查實(shí)體類是否繼承了官方model,確保實(shí)體類對(duì)應(yīng)的mapper已正確注入,在使用@Component注解時(shí),應(yīng)保證相關(guān)依賴已注入2024-09-09