Spring
文章平均质量分 94
wust_zh
哈哈哈哈哈
展开
-
spring:IOC注解
1、@Configuration2、@ComponentScan实例1@Configuration@ComponentScan(value = "com.wust",includeFilters = { @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Controller.class}), @ComponentScan.Filter(type = FilterType.CUST.原创 2021-01-19 15:41:45 · 134 阅读 · 0 评论 -
静态代理和动态代理
1、代理代理就好比我们现实生活中的中介,我们平时买房租房都是找中介,并不是直接找的房东或业主,因为中介手中的资源比较多。简而言之,代理体现的是一种中间商赚差价的味道。2、代理模式代理模式是面向对象编程中比较常见的设计模式。用户只关心接口功能,而不在乎谁提供了功能接口真正实现者是上图的 RealSubject,但是它不与客户直接接触,而是通过代理。代理就是上图中的 Proxy,由于它实现了 Subject 接口,所以它能够直接与用户接触。客户调用 Proxy 的时候,Proxy 内部调用了原创 2020-12-20 16:48:27 · 160 阅读 · 1 评论 -
spring简介
1、spring7大功能模块2、控制反转的含义官网解释IoC is also known as dependency injection (DI). It is a process whereby objects define their dependencies (that is, the other objects they work with) only through constructor arguments, arguments to a factory method, or pr原创 2020-12-20 17:59:10 · 146 阅读 · 2 评论 -
Spring 整合Mybatis
1、相关主要依赖以及参考文档1.1、主要依赖 <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.6</version> </dependency> <dep原创 2020-12-21 13:24:07 · 139 阅读 · 0 评论