Explorar el Código

remove new DbConfig(Prop p) method

daqian hace 4 años
padre
commit
c022025875

+ 2 - 2
database/pom.xml

@@ -6,7 +6,7 @@
 
   <groupId>com.jzdsh</groupId>
   <artifactId>database</artifactId>
-  <version>1.0</version>
+  <version>1.2</version>
 
   <name>database</name>
 
@@ -29,7 +29,7 @@
     <dependency>
       <groupId>com.jzdsh</groupId>
       <artifactId>utils</artifactId>
-      <version>1.0</version>
+      <version>1.1</version>
     </dependency>
   </dependencies>
 

+ 0 - 6
database/src/main/java/com/jzdsh/common/database/DbConfig.java

@@ -1,7 +1,5 @@
 package com.jzdsh.common.database;
 
-import com.jfinal.kit.Prop;
-import com.jfinal.kit.PropKit;
 import com.jfinal.plugin.druid.DruidPlugin;
 
 /**
@@ -65,10 +63,6 @@ public class DbConfig {
     }
     //endregion
 
-    public DbConfig(Prop p){
-        this("normal", p.get("db.url"), p.get("db.username"), p.get("db.password"));
-    }
-
     public DbConfig(String configName,String jdbcUrl,String userName,String password){
         this.configName = configName;
         this.jdbcUrl = jdbcUrl;

+ 1 - 1
database/src/main/java/com/jzdsh/common/database/_Generator.java

@@ -32,7 +32,7 @@ public class _Generator {
      */
     public static void generate(String dbModelPackageName) {
         Prop p = PropKit.use("config-dev.txt");
-        generate(new DbConfig(p),dbModelPackageName);
+        generate(new DbConfig("normal", p.get("db.url"), p.get("db.username"), p.get("db.password")),dbModelPackageName);
     }
 
     /**