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

3955 Commits

Author SHA1 Message Date
Guide哥
bad9ae955c
Merge pull request #1621 from coderyang123/patch-17
修复错别字
2022-03-16 08:46:59 +08:00
Guide哥
ca3a59030c
Merge pull request #1620 from coderyang123/patch-16
修复错别字
2022-03-16 08:46:24 +08:00
guide
91934887c9 [docs add] agrona (Java 高性能数据结构和实用方法) 2022-03-15 10:49:36 +08:00
yueyang
9623d8077d
修复错别字
率先超市 -> 率先超时
2022-03-15 09:22:41 +08:00
yueyang
ea40bbb6cd
修复错别字
如果一】个 -> 如果一个
2022-03-15 09:13:02 +08:00
guide
5b183ee904 [docs update] 添加 《分布式系统模式》中文版 2022-03-15 00:37:41 +08:00
Guide哥
a98a79b068
Merge pull request #1618 from zzzzail/main
关于局部变量生存时间的修改
2022-03-14 22:07:07 +08:00
Guide哥
351a704069
Merge pull request #1617 from coderyang123/patch-15
修复错别字
2022-03-14 22:04:01 +08:00
Guide哥
0d985e2b7d
Merge pull request #1614 from geomonlin/patch-9
Update memory-area.md
2022-03-14 22:00:37 +08:00
guide
dcd509e29f [docs update] 开发工具部分添加 idea 项目链接 2022-03-14 17:31:28 +08:00
Zail
e07077c4ea 关于局部变量生存时间的修改。局部变量的生命周期应该是随着方法的调用而生成,随着方法的调用结束而消亡。 2022-03-14 15:45:15 +08:00
Z
3a292b7edf
Merge pull request #2 from Snailclimb/main
update
2022-03-14 15:38:11 +08:00
yueyang
6d40735fc4
修复错别字
路有 -> 路由
2022-03-14 14:35:50 +08:00
guide
5c45af9c7a [docs add]java开源项目精选集 2022-03-13 18:57:39 +08:00
guide
3ea73b538d [docs feat]vuepress 主题版本升级 2022-03-13 17:33:20 +08:00
target
3c2745df4a
Update memory-area.md
update error word
2022-03-13 16:45:35 +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哥
1975a2f260
Merge pull request #1610 from Jarvan-Song/patch-1
Update distributed-id.md
2022-03-12 22:57:17 +08:00
Guide哥
9a1e79e191
Merge pull request #1608 from CrazyKid/patch-2
Update java-basic-questions-03.md
2022-03-12 22:51:55 +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
Jarvan-Song
59500f3780
Update distributed-id.md 2022-03-10 12:39:11 +08:00
guide
15c929199c [docs add]Redis 内存碎片 2022-03-09 22:09:26 +08:00
CrazyKid
f8b180cabf
Update java-basic-questions-03.md
所有Throwable 都可以通过catch进行捕获,但是Error不建议被捕获。
2022-03-09 21:49:38 +08:00
guide
2f4b06e08a Merge branch 'main' of github.com:Snailclimb/JavaGuide 2022-03-09 08:58:36 +08:00
guide
6050cdd833 [docs fix]typo 2022-03-09 08:58:30 +08:00
Guide哥
be8f4066c6
Merge pull request #1604 from jun0315/raft-doc
[docs]:add author
2022-03-09 08:57:26 +08:00
谢其骏
30fcd3e60f [docs]:add author 2022-03-09 00:41:37 +08:00
guide
f29db347fa [docs fix]rss订阅修复 2022-03-08 15:47:50 +08:00
guide
e7965662d1 [docs update] 内容完善 2022-03-08 14:04:22 +08:00
guide
f0e33d286f Merge branch 'main' of github.com:Snailclimb/JavaGuide 2022-03-07 19:20:15 +08:00
guide
3ab8d73a9f [docs improve] 主题升级&还原搜索功能 2022-03-07 19:20:07 +08:00
Guide哥
fe1a057ce1
Merge pull request #1598 from JuiceApp1e/patch-1
修改错别字
2022-03-07 15:09:15 +08:00
JuiceApp1e
44d9d4a060
修改错别字
修改错别字,整理语义
2022-03-06 19:17:08 +08:00
guide
c1ae9ece0f Update mysql-logs.md 2022-03-06 00:00:34 +08:00
Guide哥
0436c6e505
Merge pull request #1596 from coderyang123/patch-14
修复错别字
2022-03-05 23:49:22 +08:00
Guide哥
c21a7d4beb
Merge pull request #1595 from hedonihilist/patch-1
Update mysql-logs.md
2022-03-05 23:44:16 +08:00
guide
aade9ab4e6 [docs fix]链接错误修复 2022-03-05 23:37:02 +08:00
Guide哥
6e5ff8c2e6
Merge pull request #1591 from umm233/main
fix typo
2022-03-05 23:32:55 +08:00
yueyang
facd5fc058
修复错别字
提供性能 -> 提高性能
2022-03-05 21:38:54 +08:00
hedonihilist
a98a04d537
Update mysql-logs.md
疑为redo log,否则就变成了“binlog如同binlog”,搁这搁这
2022-03-05 15:49:17 +08:00
guide
e2a85796de [docs update]vuepress主题升级到beta版本 2022-03-05 08:49:57 +08:00
guide
1df42d4ed4 [docs update]移除首页数据库相关工具 2022-03-04 17:38:55 +08:00
umm233
6b71ff4a03
fix typo 2022-03-03 23:30:42 +08:00
guide
ef43c1e9b8 Update java-collection-questions-01.md 2022-03-03 23:26:13 +08:00
guide
b25adb7018 [docs fix]项目首页格式错误 2022-03-03 21:27:28 +08:00
guide
a533a23d5f Update intro.md 2022-03-03 21:17:04 +08:00