File tree Expand file tree Collapse file tree 6 files changed +12
-6
lines changed
springboot-starter-data-fast
springboot-starter-id-generator
springboot-starter-security-jwt Expand file tree Collapse file tree 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> {
1241241 . domain对象创建时的监听
1251252 . domain对象中的字段值发生改变时的监听
126126
127+ 同时框架提供IDomain接口,该接口提供了domain对象的持久化方法与删除方法:
128+
129+ 1 . persist():持久化方法,该方法会触发domain对象的持久化事件
130+ 2 . delete():删除方法,该方法会触发domain对象的删除事件
131+
132+
127133实例domain如下:
128134``` java
129135
130136import lombok.Getter ;
131137
132- public class Demo {
138+ public class Demo implements IDomain {
133139
134140 @Getter
135141 private final long id;
Original file line number Diff line number Diff line change 1212
1313 <groupId >com.codingapi.springboot</groupId >
1414 <artifactId >springboot-parent</artifactId >
15- <version >2.1.1 </version >
15+ <version >2.1.2 </version >
1616
1717 <url >https://github.com/codingapi/springboot-framewrok</url >
1818 <name >springboot-parent</name >
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >springboot-parent</artifactId >
77 <groupId >com.codingapi.springboot</groupId >
8- <version >2.1.1 </version >
8+ <version >2.1.2 </version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >springboot-parent</artifactId >
77 <groupId >com.codingapi.springboot</groupId >
8- <version >2.1.1 </version >
8+ <version >2.1.2 </version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 66 <parent >
77 <artifactId >springboot-parent</artifactId >
88 <groupId >com.codingapi.springboot</groupId >
9- <version >2.1.1 </version >
9+ <version >2.1.2 </version >
1010 </parent >
1111
1212 <artifactId >springboot-starter-security-jwt</artifactId >
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.codingapi.springboot</groupId >
77 <artifactId >springboot-parent</artifactId >
8- <version >2.1.1 </version >
8+ <version >2.1.2 </version >
99 </parent >
1010 <artifactId >springboot-starter</artifactId >
1111
You can’t perform that action at this time.
0 commit comments