上一篇博客《Spring Transaction属性之Propagation》讲解了Propagation相关的知识,这篇博客主要关注于Isolation这个属性。
一、Isolation基础
请先移步Wikipedia:isolation.
Isolation Level VS Phenomena
上图来自wikipeida。
因为我们在申明Isolation Level时,我们仅仅关心什么Phenomena不会出现。所以,在SQL标准中,仅仅规定了Isolation Level会保证哪种读现象不会出现,而不会规定某种读现象一定会出现。
例如,在Isolation设置为Repeatable Read时,