File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
src/main/java/info/xiaomo/core/logger Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 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 >
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
Original file line number Diff line number Diff line change 11package info .xiaomo .core .logger ;
22
3- import java .beans .PropertyDescriptor ;
43import java .lang .reflect .Field ;
54import java .lang .reflect .Method ;
65import 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 ());
You can’t perform that action at this time.
0 commit comments