/* Font definitions */ html { font-family: '宋体',sans-serif; font-size: 9pt; font-style: normal; font-weight: normal; } body, h4, h5, h6, p, table, td, caption, th, ul, ol, dl, li, dd, dt { font-size: 1em; } pre { font-family: monospace; } h1 { font-size: 1.8em; } h2 { font-size: 1.2em; } h3 { font-size: 1.1em; } /* Margins */ h1 { margin-top: 0.3em; margin-bottom: 0.04em } h2 { margin-top: 2em; margin-bottom: 0.25em } h3 { margin-top: 1.7em; margin-bottom: 0.25em } h4 { margin-top: 2em; margin-bottom: 0.3em } h5 { margin-top: 0px; margin-bottom: 0px } p { margin-top: 1em; margin-bottom: 1em } pre { margin-left: 0.6em } ul { margin-top: 0px; margin-bottom: 1em; } li { margin-top: 0px; margin-bottom: 0px; } li p { margin-top: 0px; margin-bottom: 0px; } ol { margin-top: 0px; margin-bottom: 1em; } dl { margin-top: 0px; margin-bottom: 1em; } dt { margin-top: 0px; margin-bottom: 0px; font-weight: bold; } dd { margin-top: 0px; margin-bottom: 0px; } /* Styles and colors */ a:link { color: #0000FF; } a:hover { color: #000080; } a:visited { text-decoration: underline; } h4 { font-style: italic; } strong { font-weight: bold; } em { font-style: italic; } var { font-style: italic; } th { font-weight: bold; }
org.springframework.transaction.TransactionDefinition
解析JDBC事务配置
隔离等级 | 描述 |
ISOLATION_DEFAULT | 默认隔离等级 |
ISOLATION_READ_UNCOMMITTED | 最低隔离等级,仅仅保证了读取过程中不会读取到非法数据 |
ISOLATION_READ_COMMITTED | 某些数据库的默认隔离等级;保证了一个事务不会读到另外一个并行事务已修改但未提交的数据 |
ISOLATION_REPEATABLE_READ | 比上一个更加严格的隔离等级。保证了一个事务不会修改已经由另一个事务读取但未提交(回滚)的数据 |
ISOLATION_SERIALIZABLE | 性能代价最为昂贵,最可靠的隔离等级。所有事务都严格隔离,可视为各事务顺序执行 |
传播途径(Propagation Behavior)
Propagation Behavior | 描述 |
PROPAGATION_REQUIRED | 支持现有事务。如果没有则创建一个事务 |
PROPAGATION_SUPPORTS | 支持现有事务。如果没有则以非事务状态运行。 |
PROPAGATION_MANDATORY | 支持现有事务。如果没有则抛出异常。 |
PROPAGATION_REQUIRES_NEW | 总是发起一个新事务。如果当前已存在一个事务,则将其挂起。 |
PROPAGATION_NOT_SUPPORTED | 不支持事务,总是以非事务状态运行,如果当前存在一个事务,则将其挂起。 |
PROPAGATION_NEVER | 不支持事务,总是以非事务状态运行,如果当前存在一个事务,则抛出异常。 |
PROPAGATION_NESTED | 如果当前已经存在一个事务,则以嵌套事务的方式运行,如果当前没有事务,则以默认方式(第一个)执行 |