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

1 Spring Boot官網[2.1.5 CURRENT GA]html

1.1 Pivotalweb

Wikispring

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.app

Official Website:www.pivotal.ioless

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 ANYTHINGmaven

  • 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.

[譯]ide

  • 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/arti...

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篇,整個系列文章會由淺入深的介紹微服務的相關概念與底層原理!

相關文章
相關標籤/搜索