摘要:
一、基于XML的AOP配置 1.假设创建一个AccountService需要增强(执行其中每一个方法都会加一个记录日志的方法),则再创建一个日志类实现记录日志方法; public class AccountServiceImpl implements IAccountService { public 阅读全文
posted @ 2020-03-17 19:41
撑起一片阳光
阅读(429)
评论(0)
推荐(0)
摘要:
一、编写事务控制类(动态代理简化代码) 1.spring配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://w 阅读全文
posted @ 2020-03-17 18:16
撑起一片阳光
阅读(178)
评论(0)
推荐(0)