spring框架

阅读 73

2022-01-24

aop–Aspect Oriented Programming:(面向切面编程)
在一个pointcut(切入点/方法)前后插入切面(方法)
好处:易于更改

ioc–Inversion of Control(控制反转)=依赖注入(Dependency Injection):
不再new对象,ioc容器直接拿。对象属性直接注入,不用set方法了
好处:方便管理,对象直接get

相关推荐

精彩评论(0)

0 0 举报