File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public static void main(String[] args) throws Exception {
96
96
APIJSONVerifier .ENABLE_APIJSON_ROUTER = true ; // 是否开启 接口路由 模式,支持简单接口转为 APIJSON JSON
97
97
//APIJSONParser.IS_START_FROM_1 = true; // 分页页码是否从 1 开始,true - 从 1 开始;false - 从 0 开始
98
98
//APIJSONSQLConfig.ENABLE_COLUMN_CONFIG = true; // apijson-framework 已集成字段插件 apijson-column,支持 !key 反选字段 和 字段名映射
99
- APIJSONApplication .init (false );
99
+ APIJSONApplication .init ();
100
100
System .out .println ("\n \n <<<<<<<<< 本 Demo 在 resources/static 内置了 APIAuto,Chrome/Firefox 打开 http://localhost:8080 即可调试(端口号根据项目配置而定) ^_^ >>>>>>>>>\n " );
101
101
}
102
102
Original file line number Diff line number Diff line change @@ -279,8 +279,11 @@ public String gainDBUri() {
279
279
//if (isOpenGauss()) {
280
280
// return "jdbc:opengauss://127.0.0.1:5432/postgres?currentSchema=" + DEFAULT_SCHEMA; //TODO 改成你自己的
281
281
//}
282
+ //if (isDoris()) {
283
+ // return "jdbc:mysql://localhost:9030"; //TODO 改成你自己的,TiDB 可以当成 MySQL 使用,默认端口为 4000
284
+ //}
282
285
283
- return null ;
286
+ return super . gainDBUri () ;
284
287
}
285
288
286
289
private String dbAccount ;
@@ -356,8 +359,11 @@ public String gainDBAccount() {
356
359
// return "postgres"; //TODO 改成你自己的
357
360
// // 不允许用初始账号,需要 CREATE USER 创建新账号并 GRANT 授权 return "opengauss"; //TODO 改成你自己的
358
361
//}
362
+ //if (isDoris()) {
363
+ // return "root";
364
+ //}
359
365
360
- return null ;
366
+ return super . gainDBAccount () ;
361
367
}
362
368
363
369
private String dbPassword ;
@@ -432,8 +438,11 @@ public String gainDBPassword() {
432
438
//if (isOpenGauss()) {
433
439
// return "openGauss@123"; //TODO 改成你自己的
434
440
//}
441
+ //if (isDoris()) {
442
+ // return "apijson";
443
+ //}
435
444
436
- return null ;
445
+ return super . gainDBPassword () ;
437
446
}
438
447
439
448
private String sql ;
You can’t perform that action at this time.
0 commit comments