IOC(容器,控制反转):将对象的创建权交给Sring
DI(依赖注入):由spring控制对象的注入过程
AOP(切面编程):为多个方法添加统一的处理流程
核心模块:Core,Context,Context,SpEL
切面编程:AOP,Aspects
消息模块:JMS
数据库支持:JDBC,ORM
Web模块:Web
测试模块:Test
组件引入类:@Component @Controller @RestController @Service @Repository @Bean
配置类:@Configuration @Import
扫描类:@ComponentScan @ComponentScans @ServletComponentScan
请求定义类:@RequestMapping @GetMapping @PostMapping
参数类:@RequestBody @PathParam
AOP类:@EnableAspectJAutoProxy @Aspect @Around…
组件注入类:@Autowired @Resource @Value
注入条件类:@Condition @Lazy
bean作用域@Scope
singleton:单例模式
prototype:多例模式
reqeust:在HttpRequest内有效,仅在WebApplicationContext环境内生效
session:在HttpSession内有效,仅在WebApplicationContext环境内生效
global-session:spring5已取消
xml配置
Java配置 @Bean
注解配置 @Component @Controller @Service @Repository
Setter方式
构造函数注入(推荐)
注解注入 @Autowired
工厂设计模式:BeanFacotry或ApplicationContext创建Bean对象
单例设计模式:bean对象有单例模式,一级缓存就是容器级单例
代理设计模式:aop动态代理
模板方法模式:BeanFacotry的流程中,onRefresh钩子函数,以Template结尾的类
观察者设计模式:spring事件驱动模型
适配器设计模式:SpringMVC中HandlerMapping解析到对应的Handler
装饰者设计模式:动态给对象添加属性或行为,DataSource的装配
策略设计模式:Spring框架的资源访问策略



