-
spring
1.Spring框架作用,好处
作用是整合,好处是解耦
在ssh整合中主要使用Spring的IoC和AOP特性。
2.IoC概念 Inverse of Control
反向控制,控制反转
控制权指的是组件对象的创建,销毁,调用关系的维护。
反向控制指的是两个组件在作用时,组件对象的创建、销毁、调用关系维护等工作由IoC框架负责。
Spring框架的IoC使用的DI(依赖注入)技术实现,可以用
setter方式注入或构造器注入。
3.AOP概念
面向切面编程,面向方面编程
面向对象编程,关注点是对象,如何更好更合理的封装一个对象。
面向切面编程,关注点是切面,如何将共通处理部分进行灵活地,重复利用。将切面组件和目标对象解耦。
面向切面编程是以面向对象编程为基础,主要改善组件间一对多的使用结构。
4.AOP注解方式的使用
a.组件自动扫描注解
@Controller 控制组件
@Service 业务组件
@Repository 数据访问组件DAO
@Component 其他组件
b.自动注入注解
@Resource
注意a和b注解使用前提是,在xml中添加下面声明
c.AOP注解
@Aspect:将当前组件指定为切面组件
@Pointcut:定义一个切入点表达式
@Aroun
- 2023-03-04 01:45:05下载
- 积分:1
-
实例63 通过内存映射实现Exe程序间的数据交换
实例63 通过内存映射实现Exe程序间的数据交换-Examples 63 through the memory mapping procedures Exe realize data exchange between
- 2022-02-24 20:37:35下载
- 积分:1
-
用NOKIA手机发短消息的VB源程,采用VB开发!仅供参考!
用NOKIA手机发短消息的VB源程,采用VB开发!仅供参考!-Nokia phones send text messages using the VB source way, using VB! Only reference!
- 2022-03-12 03:25:35下载
- 积分:1
-
This program is a document manager, the function includes adding, revising , del...
本软件对文档进行管理,功能包括添加、修改、删除、报表打印等.-This program is a document manager, the function includes adding, revising , deletion, report print etc..
- 2022-09-20 11:20:03下载
- 积分:1
-
数字黑洞程序. 你输入一个不超过10的整数,然后按倍数从大到小排列,减去位数从小到大排列的数字.得出的数重复做上面的操作,最后会吸进一个数字....
数字黑洞程序. 你输入一个不超过10的整数,然后按倍数从大到小排列,减去位数从小到大排列的数字.得出的数重复做上面的操作,最后会吸进一个数字.-digital black hole procedures. You enter a not exceed 10 Integer, and then arranged by multiples on average, less median from small to large with the figures. Come do a few repeat the above operation will eventually sucked into a figure.
- 2022-11-11 10:40:04下载
- 积分:1
-
A C++ version of the classic Snake game.
A C++ version of the classic Snake game.
- 2023-03-31 05:30:04下载
- 积分:1
-
Student achievement management procedures [C++ Code is complete in advance of th...
学生成绩管理程序[C++代码 很完整的事先了相应的功能~这个是我课程设计做的-Student achievement management procedures [C++ Code is complete in advance of the corresponding function ~ this is my curriculum design to do the
- 2022-01-25 22:15:00下载
- 积分:1
-
这是一个用c#编写的用C#实现线性表和多项式相加功能,可以看看的...
这是一个用c#编写的用C#实现线性表和多项式相加功能,可以看看的-this program is made by c#. It can generate a linear table and perform the polynomial adding.
- 2022-01-26 04:56:38下载
- 积分:1
-
Basketball game client and server
篮球比赛显示端和服务器端的计分和时间上的同步等功能。-Basketball game client and server-side shows the points and time synchronization functions.
- 2022-12-10 14:05:03下载
- 积分:1
-
电影自动更新,对系统进行操作。源码较为简单,希望对大家有所帮助!...
电影自动更新,对系统进行操作。源码较为简单,希望对大家有所帮助!-film automatic renewal, the system operation. Source relatively simple, we want to help!
- 2023-03-03 05:15:03下载
- 积分:1