Spring Boot 簡介(入門篇)
1.什么是SpringBoot
Spring Boot是由Pivotal團隊提供的全新框架,其設(shè)計目的是用來簡化新Spring應(yīng)用的初始搭建以及開發(fā)過程。該框架使用了特定的方式來進行配置,
從而使開發(fā)人員不再需要定義樣板化的配置。通過這種方式,Spring Boot致力于在蓬勃發(fā)展的快速應(yīng)用開發(fā)領(lǐng)域(rapid application development)成為領(lǐng)導(dǎo)者。
2.SpringBoot特性
1).創(chuàng)建獨立的Spring項目
2).內(nèi)置Tomcat和Jetty容器
3).提供一個starter POMs來簡化Maven配置
4).提供了一系列大型項目中常見的非功能性特性,如安全、指標,健康檢測、外部配置等
5).完全沒有代碼生成和xml配置文件
3.SpringBoot運行環(huán)境
Spring Boot最新版可以運行在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)文章
Spring容器刷新obtainFreshBeanFactory示例詳解
這篇文章主要為大家介紹了Spring容器刷新obtainFreshBeanFactory示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2023-03-03Springboot實現(xiàn)導(dǎo)入導(dǎo)出Excel的方法
今天帶各位小伙伴學(xué)習(xí)Springboot實現(xiàn)導(dǎo)入導(dǎo)出Excel的方法,文中有非常詳細的介紹,對正在學(xué)習(xí)java的小伙伴們有很好地幫助,需要的朋友可以參考下2021-05-05淺談DetachedCriteria和Criteria的使用方法(必看)
下面小編就為大家?guī)硪黄獪\談DetachedCriteria和Criteria的使用方法(必看)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-05-05SpringCloud 如何使用feign時的復(fù)雜參數(shù)傳遞
這篇文章主要介紹了SpringCloud 如何使用feign時的復(fù)雜參數(shù)傳遞方式,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2021-07-07springboot+quartz以持久化的方式實現(xiàn)定時任務(wù)的代碼
這篇文章主要介紹了springboot+quartz以持久化的方式實現(xiàn)定時任務(wù)的相關(guān)知識,本文通過實例代碼給大家介紹的非常詳細,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-07-07mybatis-plus報錯Not Found TableInfoCache異常問題
在集成百度uid-generator過程中,MyBatis-Plus報錯NotFoundTableInfoCache異常,解決方法:檢查實體類是否繼承了官方model,確保實體類對應(yīng)的mapper已正確注入,在使用@Component注解時,應(yīng)保證相關(guān)依賴已注入2024-09-09