Skip to content

Commit 452911e

Browse files
author
Evan Hu
committed
fix error
1 parent d370504 commit 452911e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>info.xiaomo</groupId>
88
<artifactId>gameCore</artifactId>
9-
<version>2.0.5</version>
9+
<version>200000.0.0-</version>
1010
<name>gameCore</name>
1111

1212
<properties>
@@ -19,7 +19,7 @@
1919
<repository>
2020
<id>github</id>
2121
<name>GitHub OWNER Apache Maven Packages</name>
22-
<url>https://maven.pkg.github.com/GameUnion/ServerCore</url>
22+
<url>https://maven.pkg.github.com/houko/ServerCore</url>
2323
</repository>
2424
</distributionManagement>
2525

src/main/java/info/xiaomo/core/logger/AbstractLog.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package info.xiaomo.core.logger;
22

3-
import java.beans.PropertyDescriptor;
43
import java.lang.reflect.Field;
54
import java.lang.reflect.Method;
65
import java.sql.*;
@@ -55,11 +54,9 @@ void init() throws Exception {
5554
// 全部使用默认值
5655
}
5756

58-
PropertyDescriptor pd = new PropertyDescriptor(field.getName(), cl);
59-
Method readMethod = pd.getReadMethod();
60-
if (readMethod == null) {
61-
continue;
62-
}
57+
// PropertyDescriptor pd = new PropertyDescriptor(field.getName(), cl);
58+
// Method readMethod = pd.getReadMethod();
59+
Method readMethod = field.getClass().getMethod(field.getName(), cl);
6360
ColumnDesc colDesc = new ColumnDesc();
6461
colDesc.setAllowNull(column.allowNull());
6562
colDesc.setAutoIncrement(column.autoIncrement());

0 commit comments

Comments
 (0)