關(guān)于Spring Boot你不得不知道的事

1 Spring Boot官網(wǎng)[2.1.5 CURRENT GA]

1.1 Pivotal

Wiki

Pivotal Software, Inc. is a software and services company based in San Francisco and Palo Alto, California, with several other offices. Divisions include Pivotal Labs (consulting services), Pivotal Cloud Foundry, and a group developing big data products.

Official Website:www.pivotal.io

The world’s most established companies run on Pivotal. The results are transformational. Through adoption of our platform, tools, and methodology, these companies have unleashed innovation and reduced time-to-market, spending less to maintain their existing application portfolio. Results span industries, including automotive, financial services, industrial, media, retail, government, technology, and telecommunications.

1.2 BUILD ANYTHING

Spring Boot is designed to get you up and running as quickly as possible, with minimal upfront configuration of Spring. Spring Boot takes an opinionated view of building production-ready applications.

[譯]

  • Spring Boot為快速啟動(dòng)和運(yùn)行以及最小化配置的Spring應(yīng)用而設(shè)計(jì)。
  • Spring Boot采用一套固化的認(rèn)知來建立生產(chǎn)環(huán)境準(zhǔn)備的應(yīng)用。

1.3 Overview

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 very little Spring configuration.

[譯]

Spring Boot讓創(chuàng)建單獨(dú)的生產(chǎn)級(jí)別的Spring應(yīng)用變得容易,你僅僅只需要運(yùn)行即可。

我們采用一套關(guān)于固化Spring平臺(tái)和第三包依賴庫的認(rèn)知,以至于你可以通過最小的煩惱來啟動(dòng)。

大多數(shù)Spring Boot的應(yīng)用程序只需要非常少的Spring配置。

1.4 Features

  • Create stand-alone Spring applications
  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR fifiles)
  • Provide opinionated 'starter' dependencies to simplify your build confifiguration
  • Automatically confifigure Spring and 3rd party libraries whenever possible
  • Provide production-ready features such as metrics, health checks and externalized confifiguration
  • Absolutely no code generation and no requirement for XML confifiguration

2 Spring Boot和Spring MVC
試想一下使用Spring或者Spring MVC的經(jīng)歷,有哪些痛苦?

3 初識(shí)Spring Boot
3.1 搭建工程方式

官網(wǎng)直接創(chuàng)建
https://start.spring.io/

  • 開發(fā)工具IDEA
image
  • 原始方式

比如用maven,創(chuàng)建指定的文件目錄結(jié)構(gòu),引入依賴,創(chuàng)建類等。

3.2 引入web依賴啟動(dòng)感受

4 Spring Boot工程結(jié)構(gòu)
4.1 Pom文件

4.2 XXXApplication

4.3 配置文件application.properties

4.4 templates和static

5 Spring Boot與微服務(wù)

5.1 再次理解Spring Boot

方便搭建和開發(fā),總之很方便,后面再慢慢感受。

5.2 微服務(wù)

Microservices鏈接:https://martinfowler.com/articles/microservices.html

In short, the microservice architectural style [1] is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services, which may be written in different programming languages and use different data storage technologies.

                                                                                                                                                                                                        ——Martin Folwer

網(wǎng)上有翻譯版本可自行查找!本人不對這段話進(jìn)行翻譯,尊重權(quán)威!

關(guān)于spring boot系列性的文章后續(xù)會(huì)繼續(xù)發(fā)布3-4篇,整個(gè)系列文章會(huì)由淺入深的介紹微服務(wù)的相關(guān)概念與底層原理!

大家可以掃描下方二維碼關(guān)注下我的微信公眾號(hào),公眾號(hào)內(nèi)沒有福利,只會(huì)定期生產(chǎn)技術(shù)性文章!

image
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容