摘要:
1. 使用xml配置事务 <?xml version="1.0" encoding="UTF-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLS 阅读全文
posted @ 2020-08-26 11:28
宁川
阅读(282)
评论(0)
推荐(0)
摘要:
事务的特性 原子性(Atomicity):事务是一个原子操作,由一系列动作组成。事务的原子性确保动作要么全部完成,要么完全不起作用。 一致性(Consistency):一旦事务完成(不管成功还是失败),系统必须确保它所建模的业务处于一致的状态,而不会是部分完成部分失败。在现实中的数据不应该被破坏。 阅读全文
posted @ 2020-08-26 10:57
宁川
阅读(181)
评论(0)
推荐(0)
摘要:
JdbcTemplate主要提供以下五类方法: execute方法:可以用于执行任何SQL语句,一般用于执行DDL语句; update方法:update方法用于执行新增、修改、删除等语句; batchUpdate方法:batchUpdate方法用于执行批处理相关语句; query方法及queryFo 阅读全文
posted @ 2020-08-26 04:41
宁川
阅读(169)
评论(0)
推荐(0)
摘要:
import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cont 阅读全文
posted @ 2020-08-26 01:35
宁川
阅读(432)
评论(0)
推荐(0)

浙公网安备 33010602011771号