SpringBoot 学习 一 (什么是)

139 阅读2分钟

一 学习目录树。

  1. 是什么
  2. 配置如何写yaml
  3. 自动装配原理
  4. 集成web开发,业务的核心。
  5. 集成数据库Druid
  6. 其它 Dubblo + zookeeper swagger ,task 等。

二 what is springboot

2.1。前序 sping 基础。

什么是 spring 2003 轻量级 java framework . 为了解决企业开发的复杂性而创建的 如何简化java

  1. 核心是bean . 基于POJO 的轻量级的最小侵入性编程。
  2. 通过IOC,DI 和面向接口实现松 couple
  3. 基于AOP 和惯例式声明进行编程
  4. 通过切面和模板,减少样式代码。

2.2 介绍 springboot

演化 xxx.do structs > springMVC > SpringBoot 新服务架构:服务网格。 从一个复杂应用场景,衍生一种规范 coc ,u can ust run .

重要的理念。 从一个复杂的应用场景C,衍生一种规范框架,人们只需要进行各种配置而不需要自己去实现它,强大的配置功能成为了优点。发展到一定程序之后,根据生产应用的情况,选其中实用功能和设计精华,重构出一些轻量级框架,之后为了提高开发效率,嫌弃原先的各类配置过于麻烦,于是提倡 COC (约定 > 配置)进而衍生出一些一站式的解决方案。

spring Boot 只需要很少,甚至0配置去开箱即用redis,mq 等3方库。 主要优点:

  1. 延续spring ,为所有的spring 开发者更快的入门
  2. 开箱即用。
  3. 内嵌式容器(tomcat)简化web 项目。
  4. 无冗余代码生成和xml 配置需求。

三 微服务架构. mvvm 微服务架构。

业务 Service : Usrhttp erService => 模块 controller => 提供接口, 开发应用的时候,将这个应用构建成一系列小服务的组合,可以通过http (rpc)的方式进行互通,

image.png

四 build anything with spring boot

sb is the starting point for building all spring-based applications. sb is designed to get you up and running as quickly as possible ,with minimal upfront configuration of spring

  • get started by using spring initializr
  • build anythins: restAPI ,websocket ,web,streaming ,tasks and more
  • smiplified security
  • rich suppoert for sql and nosql
  • Embedded runtime support :tomcat jetty
  • Developer productivity tools such as LiveReload and AutoRestart
  • Curated dependencies that just work
  • Production-ready features such as tracing ,metrics, and health staus
  • works in you favorited IDE: Intelij IDEA