资讯专栏INFORMATION COLUMN

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

ygyooo / 3173人阅读

摘要:采用一套固化的认知来建立生产环境准备的应用。我们采用一套关于固化平台和第三包依赖库的认知,以至于你可以通过最小的烦恼来启动。大多数的应用程序只需要非常少的配置。

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

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/77784.html

相关文章

  • 关于Spring Boot得不知道的事--Spring Boot的基本操作

    摘要:版本和编码方式依赖管理这样比如使用的时候就不需要指定版本号使用自己的项目这时候将依赖管理的问题放到中。 1 Pom文件1.1 spring-boot-starter-parent表示当前pom文件从spring-boot-starter-parent继承下来,在spring-boot-starter-parent中提供了很多默认配置,可以简化我们的开发。 org.springfram...

    fancyLuo 评论0 收藏0
  • 关于微服务得不知道的事——Spring Boot注解分析

    摘要:注解分析注解定义注解,用于为代码提供元数据。我们可以将元注解看成一种特殊的修饰符,用来解释说明注解,它是注解的元数据。被修改的注解,结合可以指定该注解存在的声明周期。新增的可重复注解。 Spring Boot 注解分析 1 注解1.1 定义Annotation(注解),用于为Java代码提供元数据。简单理解注解可以看做是一个个标签,用来标记代码。是一种应用于类、方法、参数、变量、构造器...

    nevermind 评论0 收藏0
  • Spring Web

    摘要:认证鉴权与权限控制在微服务架构中的设计与实现一引言本文系认证鉴权与权限控制在微服务架构中的设计与实现系列的第一篇,本系列预计四篇文章讲解微服务下的认证鉴权与权限控制的实现。 java 开源项目收集 平时收藏的 java 项目和工具 某小公司RESTful、共用接口、前后端分离、接口约定的实践 随着互联网高速发展,公司对项目开发周期不断缩短,我们面对各种需求,使用原有对接方式,各端已经很...

    Kosmos 评论0 收藏0
  • Nacos系列:基于Nacos的配置中心

    摘要:杀只鸡而已,你拿牛刀来做甚释义小团队小项目选择简单的配置管理方式就好了,要什么配置中心,纯属没事找事。,我就啰嗦到这里吧,下面正式介绍作为配置中心是怎么使用的。 前言 在看正文之前,我想请你回顾一下自己待过的公司都是怎么管理配置的,我想应该会有以下几种方式: 1、硬编码没有什么配置不配置的,直接写在代码里面,比如使用常量类优势:对开发友好,开发清楚地知道代码需要用到什么配置劣势:涉及秘...

    ralap 评论0 收藏0
  • SpringBoot 实战 (一) | 如何使用 IDEA 构建 Spring Boot 工程

    摘要:它使用约定大于配置的理念让你的项目快速运行起来。如何使用构建工程第一步,当然是安装傻瓜式教程,请自行百度。包名,填完和后自动生成,默认即可。确认无误,点完成创建即可。 微信公众号:一个优秀的废人如有问题或建议,请后台留言,我会尽力解决你的问题。 前言 新年立了个 flag,好好运营这个公众号。具体来说,就是每周要写两篇文章在这个号发表。刚立的 flag 可不能这么快打脸。下面送上本周第...

    Ryan_Li 评论0 收藏0

发表评论

0条评论

ygyooo

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<