File tree 6 files changed +12
-6
lines changed
springboot-starter-data-fast
springboot-starter-id-generator
springboot-starter-security-jwt
6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,18 @@ public class DemoChangeLogHandler implements IHandler<DemoChangeEvent> {
124
124
1 . domain对象创建时的监听
125
125
2 . domain对象中的字段值发生改变时的监听
126
126
127
+ 同时框架提供IDomain接口,该接口提供了domain对象的持久化方法与删除方法:
128
+
129
+ 1 . persist():持久化方法,该方法会触发domain对象的持久化事件
130
+ 2 . delete():删除方法,该方法会触发domain对象的删除事件
131
+
132
+
127
133
实例domain如下:
128
134
``` java
129
135
130
136
import lombok.Getter ;
131
137
132
- public class Demo {
138
+ public class Demo implements IDomain {
133
139
134
140
@Getter
135
141
private final long id;
Original file line number Diff line number Diff line change 12
12
13
13
<groupId >com.codingapi.springboot</groupId >
14
14
<artifactId >springboot-parent</artifactId >
15
- <version >2.1.1 </version >
15
+ <version >2.1.2 </version >
16
16
17
17
<url >https://github.com/codingapi/springboot-framewrok</url >
18
18
<name >springboot-parent</name >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<artifactId >springboot-parent</artifactId >
7
7
<groupId >com.codingapi.springboot</groupId >
8
- <version >2.1.1 </version >
8
+ <version >2.1.2 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<artifactId >springboot-parent</artifactId >
7
7
<groupId >com.codingapi.springboot</groupId >
8
- <version >2.1.1 </version >
8
+ <version >2.1.2 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<artifactId >springboot-parent</artifactId >
8
8
<groupId >com.codingapi.springboot</groupId >
9
- <version >2.1.1 </version >
9
+ <version >2.1.2 </version >
10
10
</parent >
11
11
12
12
<artifactId >springboot-starter-security-jwt</artifactId >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >com.codingapi.springboot</groupId >
7
7
<artifactId >springboot-parent</artifactId >
8
- <version >2.1.1 </version >
8
+ <version >2.1.2 </version >
9
9
</parent >
10
10
<artifactId >springboot-starter</artifactId >
11
11
You can’t perform that action at this time.
0 commit comments