上一页 1 2 3 4 5 6 7 ··· 12 下一页
  2023年8月3日
摘要: Spring事务失败的场景有哪些? 1、异常捕获处理 2、抛出检查异常 3、非public方法 1、异常捕获处理 正常代码: 异常代码,执行后会执行事务,但是加了TryCatch后会出现事务失效。 模拟异常代码位置之上正常执行,并且事务会提交,被转账的用户代码不会执行,事务失效。 2、抛出检查异常 阅读全文
posted @ 2023-08-03 00:13 wuzx-blog 阅读(20) 评论(0) 推荐(0) 编辑
  2023年8月2日
摘要: 引入切面类依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> Log.class 1 import jav 阅读全文
posted @ 2023-08-02 23:55 wuzx-blog 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-02 22:09 wuzx-blog 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-02 22:02 wuzx-blog 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-02 10:01 wuzx-blog 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-02 09:42 wuzx-blog 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 锁:排它锁(如一个事务获取了一个数据行的排它锁,其他事务就不能再获取该行的其他锁),insert update delete都是用了排它锁 mvcc:多版本并发控制。 你解释一下mvcc? 阅读全文
posted @ 2023-08-02 09:38 wuzx-blog 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-02 09:14 wuzx-blog 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-02 09:09 wuzx-blog 阅读(5) 评论(0) 推荐(0) 编辑
  2023年8月1日
摘要: 阅读全文
posted @ 2023-08-01 23:02 wuzx-blog 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页