guide
84ae035493
[docs update]spring事务内容完善
2022-03-13 10:06:18 +08:00
Guide哥
cd80c296b5
Merge pull request #1611 from 1autodidact/patch-1
...
spring 事务 PROPAGATION_NESTED纠错
2022-03-13 09:11:30 +08:00
guide
47dabd9b82
Update spring-common-annotations.md
2022-03-12 13:54:41 +08:00
Mingron
3ac727a98a
Update spring-transaction.md
2022-03-10 22:52:53 +08:00
Mingron
5a44269f13
spring 事务 PROPAGATION_NESTED纠错
...
ROPAGATION_NESTED:如果当前存在事务,就在嵌套事务内执行;如果当前没有事务,就执行与PROPAGATION_REQUIRED类似的操作,子事务回滚外部主事务也会受到影响进行回滚
```
@service
public class UserInvokeService {
@Autowired
private UserService userService;
@resource
private UserMapper userMapper;
@transactional
public void invokeUserService() {
User user = new User();
user.setName("zxx");
user.setAge(333333);
userMapper.insert(user);
userService.insertData();
}
}
@service
public class UserService {
@resource
private UserMapper userMapper;
@transactional(propagation = Propagation.NESTED)
public void insertData() {
User user = new User();
user.setName("inserByNested");
user.setAge(2222);
userMapper.insert(user);
int a = 1 / 0;
}
}
@SpringBootTest
public class TransactionalTest {
@Autowired
UserService userService;
@Autowired
UserInvokeService userInvokeService;
@test
public void testTransaction() {
userInvokeService.invokeUserService();
}
}
```
2022-03-10 22:44:23 +08:00
guide
e7965662d1
[docs update] 内容完善
2022-03-08 14:04:22 +08:00
guide
aade9ab4e6
[docs fix]链接错误修复
2022-03-05 23:37:02 +08:00
guide
5a5f8ccb3b
✨ [docs feat]vuepress主题更新
2022-03-03 09:14:56 +08:00
guide
ee3772dc66
[docs fix] springcloud入门标题格式问题
2022-02-27 15:39:34 +08:00
东三环牛哥
ffc79bba65
Update spring-common-annotations.md
...
官网注释:
Session: Scopes a single bean definition to the lifecycle of a HTTP Session. Only valid in the context of a web-aware Spring ApplicationContext.
来自:
https://docs.spring.io/spring-framework/docs/3.0.0.M3/reference/html/ch04s04.html
2022-02-22 10:35:42 +08:00
yueyang
6d06381bc9
修复错别字
...
加锁度 -> 加锁读
2022-02-18 15:47:13 +08:00
guide
36294f2976
[docs update]星球介绍更新
2022-02-17 13:00:46 +08:00
guide
e346130289
[docs update] 页面布局
2022-02-12 14:42:12 +08:00
guide
58ed684131
[docs fix]图片错误修复
2022-02-11 20:37:11 +08:00
guide
dc793394d4
[docs fix]图片错误修复
2022-02-11 20:36:04 +08:00
guide
41278d3792
[docs update]zhishixingqiu
2022-02-11 16:44:44 +08:00
guide
cc4543bc3f
[docs improve]图片压缩
2022-02-09 16:01:16 +08:00
guide
ae1f18c787
[docs update]知识星球链接
2022-02-07 08:33:05 +08:00
guide
fa68f61bae
[docs refractor&add]规范文件名&添加泛型知识点
2022-01-24 11:01:05 +08:00
guide
24f43169bd
图片压缩
2022-01-13 19:57:13 +08:00
guide
70253498e3
[docs update]更新星球链接
2021-12-31 13:35:15 +08:00
Guide哥
91455414de
Merge pull request #1484 from DayuZhu/patch-1
...
Update springcloud-intro.md 构建分布式系统不需要复杂和容易出错?描述无法理解
2021-12-29 20:31:46 +08:00
guide
0af9b3a45c
Update spring-transaction.md
2021-12-28 15:58:52 +08:00
guide
63244b8c80
Update spring-transaction.md
2021-12-28 15:52:00 +08:00
Dayu
6bc590cdcb
Update springcloud-intro.md
2021-12-21 22:45:39 +08:00
guide
6d9b99e48f
[docs update]规范Spring相关文件名
2021-12-13 17:36:52 +08:00
guide
32fa2ade93
[docs update]Spring Boot 自动装配原理文件名修改
2021-12-13 17:27:57 +08:00
guide
a147ad0694
[docs update] 推文更新
2021-12-08 15:17:36 +08:00
guide
7b6661870f
[feat]图片压缩
2021-11-16 10:52:26 +08:00
guide
7042acb5db
[feat] 图片压缩
2021-11-15 08:55:21 +08:00
guide
dc45389934
[feat] 🔥 基于 vuepress 重构整个项目,提升阅读体验
2021-11-09 18:47:58 +08:00
Guide哥
ba32cba42f
Merge pull request #1392 from kaka2634/master
...
Update Spring常见问题总结.md
2021-09-13 09:21:43 +08:00
Guide哥
6cc177a9d4
Merge pull request #1390 from error0g/error0g-patch-3
...
Update 一千行MySQL学习笔记
2021-09-13 09:04:51 +08:00
kaka2634
44232fc8b5
Update Spring常见问题总结.md
2021-09-12 23:55:33 +08:00
error0
219a006f1b
Update Spring事务总结.md
2021-09-11 12:37:01 +08:00
huhongtao
ff5f4b066f
Update Spring常见问题总结.md
2021-09-11 09:36:49 +08:00
anaer
767f601471
Update SpringBoot+Spring常用注解总结.md
...
typo
2021-09-08 20:20:31 +08:00
weixsun
9b358a9a60
Update Spring事务总结.md
2021-09-07 16:38:15 +08:00
weixsun
00422da87b
Update Spring事务总结.md
2021-09-07 16:25:52 +08:00
weixsun
2e6bf93963
Update Spring事务总结.md
2021-09-07 16:15:54 +08:00
anaer
b55ee4a634
Update Spring常见问题总结.md
2021-08-24 11:28:43 +08:00
guide
452fc49d6b
Update Spring常见问题总结.md
2021-08-09 19:43:23 +08:00
guide
9b9123c5a9
Spring 常见问题总结
2021-08-09 17:33:20 +08:00
guide
b24ab64891
Update Spring常见问题总结.md
2021-08-09 00:27:06 +08:00
yamonc
013b8a0a50
添加序号,阅读记忆更方便
2021-08-08 09:44:41 +08:00
yamonc
a1342f760d
更新
2021-08-07 15:13:58 +08:00
yamonc
cb33610c5d
更新spring事务:添加管理事务的方式、事务传播方式思维导图
2021-08-07 10:24:43 +08:00
yamonc
c6d832cf37
更新文件:doc/system-design/frameword/spring/SpringInterviewQuestions.md :spring AOP和AspectJ AOP有什么区别,添加序号,方便记忆。
2021-08-07 10:10:30 +08:00
Guide哥
8a526c20ec
Merge pull request #1240 from wulnm/master
...
fix format
2021-06-14 22:44:13 +08:00
齐
cd6d4ee78c
fix format
...
修正表格格式以及去除一个多余字符`
2021-06-11 23:53:11 +08:00