|
@@ -57,7 +57,7 @@ public class GenDatabase extends BaseEntity {
|
|
|
@Schema(description = "数据库名")
|
|
|
@NotBlank(groups = Create.class)
|
|
|
@Size(max = 50)
|
|
|
- private String database;
|
|
|
+ private String dbName;
|
|
|
|
|
|
@Schema(description = "备注")
|
|
|
@Size(max = 255)
|
|
@@ -78,7 +78,7 @@ public class GenDatabase extends BaseEntity {
|
|
|
url.append("jdbc:postgresql://");
|
|
|
}
|
|
|
url.append(this.host).append(":").append(this.port);
|
|
|
- url.append("/").append(this.database);
|
|
|
+ url.append("/").append(this.dbName);
|
|
|
if (dbType == DbType.MYSQL) {
|
|
|
url.append("?useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai");
|
|
|
}
|