File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
基于注解的声明式事务
4
4
5
+ ## 测试方法
6
+
7
+ 启动应用后访问/errorUpdate和/errorUpdate2,对于出现异常的Service方法,数据库会回滚。
8
+
5
9
## 许可证
6
10
7
11
Copyright (c) 2018 Xiong Neng
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ spring:
15
15
profiles :
16
16
active : dev
17
17
datasource :
18
- url : jdbc:mysql://127.0.0.1:3306/test?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8
18
+ url : jdbc:mysql://127.0.0.1:3306/test?serverTimezone=UTC& useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8
19
19
username : root
20
20
password : 123456
21
21
@@ -51,5 +51,5 @@ logging:
51
51
ROOT : INFO
52
52
com :
53
53
xncoding : DEBUG
54
- file : E :/logs/trans.log
54
+ file : D :/logs/trans.log
55
55
You can’t perform that action at this time.
0 commit comments