Fork me on GitHub

Spring事务的5种隔离级别和7种传播性

隔离级别 isolation,5 种:

ISOLATION_DEFAULT,
ISOLATION_READ_UNCOMMITTED,
ISOLATION_READ_COMMITTED,
ISOLATION_REPEATABLE_READ,
ISOLATION_SERIALIZABLE,

隔离级别解决的问题:

脏读,

幻读,

不可重复读,

传播性 propagation,7 种:

PROPAGATION_REQUIRED,
PROPAGATION_SUPPORTS,
PROPAGATION_MANDATORY,
PROPAGATION_REQUIRES_NEW,
PROPAGATION_NOT_SUPPORTED,
PROPAGATION_NEVER,
PROPAGATION_NESTED,

Spring事务实现原理:

IOC+APO

 

posted @ 2018-11-25 22:31  郑斌blog  阅读(523)  评论(0编辑  收藏  举报