专栏首页Java架构师学习关于Spring Boot你不得不知道的事

关于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

image

  • 原始方式

比如用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

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Spring高频面试题,你能答的上哪些?(高级篇)

    5、BeanFactory 和 ApplicationContext 有什么区别?

    Java架构
  • Spring5都有那些新特性与增强,需要了解的Java程序员来看一看

    Spring FrameWork 5.0新的功能 JDK 8+和Java EE7+以上版本 整个框架的代码基于java8 通过使用泛型等特性提高可读性 对j...

    Java架构
  • 微服务Dubbo与Spring Cloud架构对比

    微服务架构是互联网很热门的话题,是互联网技术发展的必然结果。它提倡将单一应用程序划分成一组小的服务,服务之间互相协调、互相配合,为用户提供最终价值。虽然微服务架...

    Java架构
  • java之spring之初始spring

    Vincent-yuan
  • Spring BOOT ( 基于Kotlin 编程语言) 使用 Spring WebFlux 实现响应式编程The Spring WebFlux Framework

    Spring BOOT ( 基于Kotlin 编程语言) 使用 Spring WebFlux 实现响应式编程

    一个会写诗的程序员
  • Spring Framework 5中的新功能和增强功能(文末送书)

    Spring 5 是一个重要的版本,距离 Spring 4 发布有四年多了。通过本文的介绍,我们一起来快速了解 Spring 5 发行版中的那些令人兴奋的特性。

    java乐园
  • Springboot2.0教程(11)

    先来聊一聊Spring作为Java开发人员,大家都Spring可不陌生,简而言之,Spring框架为开发Java应用程序提供了全面的基础架构支持。...

    java进阶架构师
  • 为什么越来越多的开发者选择使用Spring Boot?

    使用Java做Web应用开发已经有近20年的历史了,从最初的Servlet1.0一步步演化到现在如此多的框架、库以及整个生态系统。经过这么长时间的发展,Java...

    Java技术江湖
  • Spring(一)Spring的第一滴血

    前言   开始工作了,但是一进来公司本来是做爬虫和数据分析的,但是走了一个后端的,导致我必须要去顶替他的工作。因为这个项目使用的是Spring、   Sprin...

    用户1195962
  • Spring历史版本变迁和如今的生态帝国

    前两篇从Web开发史的角度介绍了我们在开发的时候遇到的一个个坑,然后一步步衍生出Spring Ioc和Spring AOP的概念雏形。Spring从2004年第...

    企鹅号小编

扫码关注云+社区

领取腾讯云代金券