Spring Boot学习篇一

Spring Boot学习篇一

前言:让我们一起乘坐Spring Boot这艘航母,一起遨游J2EE的浩瀚世界。

在这里插入图片描述

1.简介

1、背景:J2EE笨重的开发、繁多的配置、低下的开发效率、复杂的部署流程、第三方技术集成难度大。

2.Spring Boot来简化Spring应用开发,约定大于配置,去繁从简,just run就能创建一个独立的,产品级别的应用。

3.解决方法
“Spring 全家桶”时代
Spring Boot -> J2EE一站式解决方案
Spring Cloud -> 分布式整体解决方案

4.优点
4.1 快速创建独立运行的Spring项目以及与主流框架集成;
4.2 使用嵌入式的Servlet容器,应用无须打包成WAR包;
4.3 starters自动依赖与版本控制;
4.4 大量的自动配置,简化开发,也可修改默认值;
4.5 无须配置XML,无代码生成,开箱即用;
4.6 准生产环境的运行时应用监控;
4.7 与云计算的天然集成。

总结:

  • 简化Spring应用开发的一个框架;
  • 整个Spring技术栈的一个大整合;
  • J2EE开发的一站式解决方案;

2.微服务

  • 2014年, martin fowler 发表了一篇博客,拉开了微服务的序幕;

  • 微服务:架构风格(服务微化);
    在这里插入图片描述

  • 一个应用应该是一组小型服务;微服务之间通过HTTP的方式进行互通;
    在这里插入图片描述

  • 每一个功能元素最终都是一个可独立替换和独立升级的软件单元;

总结:

        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

其他

maven安装:https://blog.csdn.net/flower_CSDN/article/details/79946008

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值