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