-
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
-
这是计算打折的程序代码 用在很多方面都很不错
这是计算打折的程序代码 用在很多方面都很不错-jdhakjh 【dlaapeplfl sldda oaksd
- 2022-01-25 23:46:32下载
- 积分:1
-
C++课件,内容通俗易懂,很适合初学者使用.
C++课件,内容通俗易懂,很适合初学者使用.-C++ Courseware, content user-friendly, it is suitable for beginners to use.
- 2022-01-25 14:05:57下载
- 积分:1
-
An example of using URBI via LibURBI in C
An example of using URBI via LibURBI in C-An example of using URBI via LibURBI in C++
- 2022-02-15 01:49:10下载
- 积分:1
-
This is a seal of recognition procedures. It can achieve the identification of t...
这是一个印章识别的程序。它可以实现识别印章。-This is a seal of recognition procedures. It can achieve the identification of the seal.
- 2022-07-24 01:26:08下载
- 积分:1
-
esp8266 wifi
esp8266 wifi 程序,实现esp6266 wifi 功能 有研究价值
- 2022-02-02 20:54:48下载
- 积分:1
-
数独游戏,优化算法,在可接受时间内可以解决36*36数独
数独游戏,优化算法,在可接受时间内可以解决36*36数独-Sudoku games, optimization algorithm, in an acceptable period of time can solve sudoku 36* 36
- 2022-01-24 17:18:05下载
- 积分:1
-
C++写的hilbert变换类
支持2^N的正方形图像
C++写的hilbert变换类
支持2^N的正方形图像-C++ to write the type of support the hilbert transform of 2 ^ N square image
- 2022-03-06 15:18:18下载
- 积分:1
-
多移动机器人改变队形程序VC++实现源码
多移动机器人改变队形程序VC++实现源码-Change the formation of multiple mobile robots program VC++ Achieve source
- 2022-02-01 05:31:33下载
- 积分:1
-
用VHDL语言编写的数字显示器,包括风轮旋转和十字扫描
用VHDL语言编写的数字显示器,包括风轮旋转和十字扫描-prepared using VHDL digital displays, including rotating round of the wind and cross scanning
- 2022-11-23 05:30:03下载
- 积分:1