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 · 948 阅读 · 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 · 421 阅读 · 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 · 872 阅读 · 0 评论
分享