ChienI Kao
筆記網站
JHTNT
筆記網站
# 淺淺介紹一下 Java
JAVA 彈性且方便使用者使用,是開發人員建置多種應用程式時的最愛,舉凡社交媒體、Web 和遊戲應用程式及網路與企業應用程式,無所不在。
# Spring vs. Spring Boot
Spring | Spring Boot | |
---|---|---|
Info | 以 JAVA 為基礎的開放原始碼 Web 應用程式架構。 | 在 Spring 架構上建置的延伸模組或模組。 |
Feature | 使用預先建置程式碼的工具和程式庫,提供彈性且完全可設定的環境,以建立自訂、鬆散結合的 Web 應用程式。 | 提供建立獨立 Spring 應用程式的功能,這些應用程式只要立即執行,不需要註解、XML 設定或撰寫大量其他程式碼。 |
# Spring Boot 是什麼?
Spring Boot 是由 Pivotal 團隊在 2013 年開始研發、2014 年 4 月發布第一個版本。
它基於 Spring4.0 設計,不僅繼承了 Spring 框架原有的優秀特性,而且還通過簡化配置來進一步簡化了 Spring 應用的整個搭建和開發過程。
- JAVA Spring Boot 提供的核心功能,除了 Spring 架構之外。
- Spring Boot 提供更輕鬆、更快速的路徑來設定、設定及執行應用程式。
- 這會消除設定大多數 Spring 型應用程式所需的大量設定。
- 開發人員無需學習基礎 Spring 架構,就能直接加入並使用 Spring Boot。
Spring Boot 可以說是在 Java 中開發基於 REST Web 應用程序的最快方法之一。
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".
We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need minimal Spring configuration.
# 主要功能
- 創建獨立的 Spring 應用程序
- 直接嵌入 Tomcat、Jetty 或 Undertow(無需部署 WAR 文件)
- 提供自以為是的 “入門” 依賴項以簡化您的構建配置
- 盡可能自動配置 Spring 和 3rd 方庫
- 提供生產就緒的功能,例如指標、健康檢查和外部化配置
- 絕對沒有代碼生成,也不需要 XML 配置
# 參考連結
- Spring Boot 官方網站