静态代理
user类+接口(基本操作)(加强类)
userService接口
userProxy类+接口(拓展操作) 属性有userService接口
test中拿new proxy(new user类)实现拓展+基本操作
不需要配置文件

spring Aop的通知
<API方式>
加强类+接口
消息类+beforeMethod接口
用配置接口 过滤器(前后环绕) 和加强类(就是基本业务的实现类)
test中 getBean使用接口接受 getBean(“userproxy”)
凡是class都需要配置bean元素

<注释方式>
excusion配置注意包名路径
beans.xml配置简单

spring一些坑

相关文章:

  • 2021-07-27
  • 2021-05-24
  • 2021-07-30
  • 2021-12-23
  • 2021-11-17
  • 2021-08-06
  • 2021-11-11
  • 2021-07-11
猜你喜欢
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2021-07-10
  • 2021-11-19
相关资源
相似解决方案