1、在spring配置文件中进行配置
    第一步:创建事务管理器
    image.png
    第二步:配置通知
    image.png
    第三部:配置切入点和切面
    image.png