spring事务管理的接口

spring事务管理的接口;PlatformTransactionManager

    常用的两个实现类;

        01,使用jdbc和mybatis是使用DataSourceTrancationManager

        02,使用hibernate时使用hibernateTrancationManager

spring事务回滚的方式;

    默认的回滚方式--------》发生运行时异常回滚,发生检查异常是提交

    检查异常肯定需要我们手动的设置回滚方式,

    运行异常严重,一旦发生,jvm终止执行

    

原文地址:https://www.cnblogs.com/liuyunfei/p/7066644.html