File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020<plugin >
2121 <groupId >com.github.hetianyi</groupId >
2222 <artifactId >code-generator-plugin</artifactId >
23- <version >1.0.0-SNAPSHOT </version >
23+ <version >1.0.0</version >
2424 <configuration >
2525 <!-- MySQL数据库配置信息 -->
2626 <database >
@@ -224,7 +224,6 @@ mvn code-generator:generate-pojo
224224``` java
225225// 在类上添加 @Slf4j 注解
226226public class Slf4jFeature extends CustomFeature {
227-
228227 public Slf4jFeature () {
229228 // 在标记点:CLASS_START的前面插入注解
230229 // 并添加依赖
@@ -244,10 +243,6 @@ public class ExcludeIdAndTimeFieldFeature implements ExcludeField {
244243 public Set<String > getExcludeFields (TableDefinition tabDef ) {
245244 return ImmutableSet . of(" id" , " created_time" , " updated_time" );
246245 }
247-
248- @Override
249- public void apply (ClassGenerator generator ) {
250- }
251246}
252247```
253248
@@ -282,10 +277,6 @@ public class AddTimeRangeFieldFeature implements AddFieldFeature {
282277 }
283278 return result;
284279 }
285-
286- @Override
287- public void apply (ClassGenerator generator ) {
288- }
289280}
290281```
291282
@@ -306,7 +297,7 @@ public class AddTimeRangeFieldFeature implements AddFieldFeature {
306297<plugin >
307298 <groupId >com.github.hetianyi</groupId >
308299 <artifactId >code-generator-plugin</artifactId >
309- <version >1.0.0-SNAPSHOT </version >
300+ <version >1.0.0</version >
310301 <configuration >
311302 <!-- MySQL数据库配置信息 -->
312303 <database >
You can’t perform that action at this time.
0 commit comments