日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 前端技术 > javascript >内容正文

javascript

什么是Spring Boot?

發(fā)布時(shí)間:2023/12/3 javascript 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 什么是Spring Boot? 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

轉(zhuǎn)載自?什么是Spring Boot?


什么是Spring Boot?

Spring Boot是Spring開源組織下的子項(xiàng)目,是Spring組件一站式解決方案,主要是簡(jiǎn)化了使用Spring的難度,簡(jiǎn)省了繁重的配置,提供了各種啟動(dòng)器,開發(fā)者能快速上手。

官方網(wǎng)站:http://projects.spring.io/spring-boot/

GitHub源碼:https://github.com/spring-projects/spring-boot


Spring Boot的優(yōu)點(diǎn)

Features

  • Create stand-alone Spring applications

  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)

  • Provide opinionated 'starter' POMs to simplify your Maven configuration

  • Automatically configure Spring whenever possible

  • Provide production-ready features such as metrics, health checks and externalized configuration

  • Absolutely no code generation and no requirement for XML configuration

  • 獨(dú)立運(yùn)行

    Spring Boot而且內(nèi)嵌了各種servlet容器,Tomcat、Jetty等,現(xiàn)在不再需要打成war包部署到容器中,Spring Boot只要打成一個(gè)可執(zhí)行的jar包就能獨(dú)立運(yùn)行,所有的依賴包都在一個(gè)jar包內(nèi)。

  • 簡(jiǎn)化配置

    spring-boot-starter-web啟動(dòng)器自動(dòng)依賴其他組件,簡(jiǎn)少了maven的配置。

+- org.springframework.boot:spring-boot-starter-web:jar:1.5.6.RELEASE:compile +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.5.6.RELEASE:compile | ?+- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.16:compile | ?+- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.16:compile | ?\- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.16:compile +- org.hibernate:hibernate-validator:jar:5.3.5.Final:compile | ?+- javax.validation:validation-api:jar:1.1.0.Final:compile | ?+- org.jboss.logging:jboss-logging:jar:3.3.1.Final:compile | ?\- com.fasterxml:classmate:jar:1.3.3:compile \- org.springframework:spring-webmvc:jar:4.3.10.RELEASE:compile
  • 自動(dòng)配置

    Spring Boot能根據(jù)當(dāng)前類路徑下的類、jar包來自動(dòng)配置bean,如添加一個(gè)spring-boot-starter-web啟動(dòng)器就能擁有web的功能,無(wú)需其他配置。

  • 無(wú)代碼生成和XML配置

    Spring Boot配置過程中無(wú)代碼生成,也無(wú)需XML配置文件就能完成所有配置工作,這一切都是借助于條件注解完成的,這也是Spring4.x的核心功能之一。

  • 應(yīng)用監(jiān)控

    Spring Boot提供一系列端點(diǎn)可以監(jiān)控服務(wù)及應(yīng)用,做健康檢測(cè)。

Spring Boot的缺點(diǎn)

Spring Boot雖然上手很容易,但如果你不了解其核心技術(shù)及流程,所以一旦遇到問題就很棘手,而且現(xiàn)在的解決方案也不是很多,需要一個(gè)完善的過程。



總結(jié)

以上是生活随笔為你收集整理的什么是Spring Boot?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。