1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

345 Commits

Author SHA1 Message Date
guide
ff9efdd3d0 [docs update] 内容完善 2022-03-18 16:28:37 +08:00
Jarvan-Song
cb1f7e6e6a
Update spring-design-patterns-summary.md 2022-03-16 16:09:16 +08:00
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
guide
598fa24a11 [docs add] 重构 2022-03-11 16:36:59 +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
e9d4a6f169 Update sentive-words-filter.md 2022-01-13 20:42:40 +08:00
guide
459e643759 Delete readme.md 2022-01-13 20:40:12 +08:00
guide
df74a37e68 [docs update]文件名规范 2022-01-13 20:29:55 +08:00
guide
24f43169bd 图片压缩 2022-01-13 19:57:13 +08:00
guide
c91ab21964 [doc update]敏感词过滤 2022-01-13 17:57:27 +08:00
guide
e37a10c76d [docs add]敏感词过滤 2022-01-13 16:57:40 +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
1aca705c54 [feat]添加首页&压缩js 2021-12-08 10:18:03 +08:00
guide
7b6661870f [feat]图片压缩 2021-11-16 10:52:26 +08:00
guide
3d586176c3 [fix]链接错误修复&图片压缩 2021-11-16 10:52:14 +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
83519ffcb4 Update Kafka常见面试题总结.md 2021-10-18 20:50:12 +08:00
machitao
f014952548 feat:补充kafka不重复消费的解答 2021-10-17 22:42:22 +08:00
guide
6e77ea0830 [feat]api网关重构 2021-10-04 10:23:53 +08:00
guide
078f4aec25 [feat]定时任务 2021-09-26 13:57:56 +08:00
guide
1947e5a1e5 [feat]分布式ID文章完善更新 2021-09-23 11:43:51 +08:00
guide
7ec4dcd7d4 Update Kafka常见面试题总结.md 2021-09-22 21:40:01 +08:00
Guide哥
111c224357
Merge pull request #1407 from anaer/patch-46
Update 读写分离&分库分表.md
2021-09-22 21:19:09 +08:00
Guide哥
423a12e16c
Merge pull request #1406 from anaer/patch-45
Update 如何设计一个高可用系统要考虑哪些地方.md
2021-09-22 21:18:41 +08:00
anaer
44cb97c11a
Update 读写分离&分库分表.md
typo
2021-09-17 10:41:01 +08:00