Skip to content

Commit 4a5de13

Browse files
committed
更新文档
1 parent b93cc58 commit 4a5de13

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
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 注解
226226
public 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>

0 commit comments

Comments
 (0)