欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

关于Spring Boot你不得不知道的事

程序员文章站 2023-01-01 10:38:08
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, Cal ......

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

关于Spring Boot你不得不知道的事

  • 原始方式

比如用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篇,整个系列文章会由浅入深的介绍微服务的相关概念与底层原理!

大家可以扫描下方二维码关注下我的微信公众号,公众号内没有福利,只会定期生产技术性文章!


关于Spring Boot你不得不知道的事