![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring学习
文章平均质量分 89
huhanghao
Dream it Wish it Do it
展开
-
Spring框架学习3——动态代理及AOP面向切面变成
目录动态代理:JDK动态代理CGLIB动态代理JDK动态代理实现步骤:AOP(AspectOrientProgramming面向切面编程)术语:切面三要素:AOP的实现:AspectJ框架的使用:使用AspectJ实现AOP的基本步骤:JoinPoint使用@AfterReturning@Around@AfterThrow@After@PointCut动态代理:动态代理是指。程序在整个运行过程中根本就不存在目标类的代理...原创 2022-02-21 14:21:37 · 896 阅读 · 2 评论 -
Spring框架学习2——基于注解的DI
基于注解DI完成对象配置使用注解的步骤:1、加入maven依赖:spring-context,会简介加入spring-aop依赖,有他才能使用注解;2、在类中加入spring的注解3、在spring的配置文件中,级啊引入一个组件扫描的标签,说明注解在项目中的位置。常用相关注解:@Component@Respotory@Service@Controller@Value@Autowired@Resource实现步骤:加入依赖 创建类,在类中...原创 2022-02-21 11:30:34 · 383 阅读 · 0 评论 -
Spring框架学习1—对象创建、基础属性赋值、数据注入
学习入口:2020最新Spring框架教程【IDEA版】-Spring框架从入门到精通_哔哩哔哩_bilibili正在上传…重新上传取消Spring对象创造流程:这里是基础的对象创建流程,利用ApplicationContext去获取对象,在之后,会被优化。<bean id=" someService" class=”com.bjpowernode.service.impl,SomeServiceImpl" />正在上传…重新上传取消<1>告诉sping.原创 2022-02-21 11:22:10 · 802 阅读 · 0 评论