關於Spring Boot你不得不知道的事

1 Spring Boot官網[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爲快速啓動和運行以及最小化配置的Spring應用而設計。
  • Spring Boot採用一套固化的認知來建立生產環境準備的應用。

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讓創建單獨的生產級別的Spring應用變得容易,你僅僅只需要運行即可。

我們採用一套關於固化Spring平臺和第三包依賴庫的認知,以至於你可以通過最小的煩惱來啓動。

大多數Spring Boot的應用程序只需要非常少的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的經歷,有哪些痛苦?

3 初識Spring Boot
3.1 搭建工程方式

官網直接創建
https://start.spring.io/

  • 開發工具IDEA
  • 原始方式

比如用maven,創建指定的文件目錄結構,引入依賴,創建類等。

3.2 引入web依賴啓動感受

4 Spring Boot工程結構
4.1 Pom文件

4.2 XXXApplication

4.3 配置文件application.properties

4.4 templates和static

5 Spring Boot與微服務

5.1 再次理解Spring Boot

方便搭建和開發,總之很方便,後面再慢慢感受。

5.2 微服務

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

網上有翻譯版本可自行查找!本人不對這段話進行翻譯,尊重權威!

關於spring boot系列性的文章後續會繼續發佈3-4篇,整個系列文章會由淺入深的介紹微服務的相關概念與底層原理!

大家可以掃描下方二維碼關注下我的微信公衆號,公衆號內沒有福利,只會定期生產技術性文章!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章