栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

【Springboot】Spring与Springboot简介

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【Springboot】Spring与Springboot简介

 学习视频 

尚硅谷雷神SpringBoot2零基础入门springboot全套完整版(spring boot2)

集数:2—4


 学习笔记 

【Java】学习笔记汇总


文章目录
  • 一、Spring
    • 1.1 Spring的能力
    • 1.2 Spring的生态
    • 1.3 Spring5重大升级
  • 二、SpringBoot
    • 2.1 SpringBoot优点
    • 2.2 SpringBoot缺点
  • 三、时代背景
    • 3.1 微服务
    • 3.2 分布式
    • 3.3 云原生
  • 四、如何学习SpringBoot
    • 4.1 官方文档架构
    • 4.2 查看版本新特性

一、Spring

宏观概念:Spring的整个生态圈
微观概念:Spring中的Spring框架(Spring framework)

1.1 Spring的能力
  • 微服务:Mircroservices
  • 响应式开发:Reactive
  • 云服务:Cloud
  • Web开发:Web apps
  • 无服务开发:Serverless
  • 事件驱动:Event Driven
  • 批处理业务:Batch
1.2 Spring的生态

SpringBoot:快速整合Spring的各种框架。

https://spring.io/projects/spring-boot

1.3 Spring5重大升级

构建异步数据流,构建响应式开发,构建出响应式应用。占用少量的线程、少量的资源处理大量的并发。

二、SpringBoot

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.

能够快速创建出生产级别的Spring应用。

2.1 SpringBoot优点

● Create stand-alone Spring applications
○ 创建独立Spring应用

● Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
○ 内嵌web服务器

● Provide opinionated ‘starter’ dependencies to simplify your build configuration
○ 自动starter依赖,简化构建配置

● Automatically configure Spring and 3rd party libraries whenever possible
○ 自动配置Spring以及第三方功能

● Provide production-ready features such as metrics, health checks, and externalized configuration
○ 提供生产级别的监控、健康检查及外部化配置

● Absolutely no code generation and no requirement for XML configuration
○ 无代码生成、无需编写XML

SpringBoot是整合Spring技术栈的一站式框架
SpringBoot是简化Spring技术栈的快速开发脚手架

2.2 SpringBoot缺点

● 人称版本帝,迭代快,需要时刻关注变化(也可以算是优点)
● 封装太深,内部原理复杂,不容易精通

三、时代背景 3.1 微服务

James Lewis and Martin Fowler (2014) 提出微服务完整概念。https://martinfowler.com/microservices/

In short, the microservice architectural style 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.-- James Lewis and Martin Fowler (2014)

● 微服务是一种架构风格
● 一个应用拆分为一组小型服务
● 每个服务运行在自己的进程内,也就是可独立部署和升级
● 服务之间使用轻量级HTTP交互
● 服务围绕业务功能拆分
● 可以由全自动部署机制独立部署
● 去中心化,服务自治。服务可以使用不同的语言、不同的存储技术。

3.2 分布式

 分布式的困难

● 远程调用
● 服务发现
● 负载均衡
● 服务容错
● 配置管理
● 服务监控
● 链路追踪
● 日志管理
● 任务调度
● …

 分布式的解决

SpringBoot + SpringCloud

3.3 云原生

原生应用如何上云。 Cloud Native

● 服务自愈
● 弹性伸缩
● 服务隔离
● 自动化部署
● 灰度发布
● 流量治理
● …

四、如何学习SpringBoot 4.1 官方文档架构

https://docs.spring.io/spring-boot/docs/current/reference/html/

4.2 查看版本新特性

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/425180.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号