Commit d89a52501df41047679e00c4d460a78b61779e8c
1 parent
faa6a71f
Exists in
master
1 fix bug
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/main/java/com/taover/codegenerate/bazhuayun/GenerateCode.java
... | ... | @@ -35,7 +35,7 @@ public class GenerateCode { |
35 | 35 | prop.setProperty("user", user); |
36 | 36 | prop.setProperty("password", password); |
37 | 37 | prop.setProperty("remarks", "true"); |
38 | - conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/"+dbName, prop); | |
38 | + conn = DriverManager.getConnection("jdbc:mysql://"+host+":"+port+"/"+dbName, prop); | |
39 | 39 | } catch (Exception e) { |
40 | 40 | e.printStackTrace(); |
41 | 41 | } | ... | ... |