简介
- 2002年,首次退出了Spring框架的雏形:interface21框架。
- Spring框架即以interface21框架为基础,经过重新设计,并不断丰富其内涵,与2004年3月24日,发布了1.0正式版。
- Rod Johnson为Spring Framework创始人。 Rod是悉尼大学的博士,然而他的专业不是计算机,而是音乐学。
- Spring理念:使现有的技术更加容易使用,本身是个大杂烩,整合了现有的技术框架。
- SSH :Struct2 + Spring + Hibernate
- SSM :SpringMVC + Spring + Mybatis
- 官方文档:https://docs.spring.io/spring-framework/docs/current/reference/html/core.html
- 中文文档:https://www.docs4dev.com/docs/zh/spring-framework/5.1.3.RELEASE/reference
优点
1.开源且免费
2.轻量级,非入侵式的框架
3.控制反转(IOC),面向切面编程(AOP)
总结:Sping就是一个轻量级的控制反转(IOC)和面向切面编程(AOP)的非入侵式的框架
<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.2.0.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>5.2.0.RELEASE</version>
</dependency>
组成
扩展
- Spring Boot
- 一个快速开发的脚手架。
- 基于Spring Boot可以快速的开发单个微服务。
- 约定大于配置!
- Spring Cloud
- Spring Cloud是基于SpringBoot实现的。