File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
APIJSON-Java-Server/APIJSONBoot-MultiDataSource
src/main/java/apijson/demo Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 76
76
<artifactId >apijson-fastjson2</artifactId >
77
77
<version >1.0.2</version >
78
78
</dependency >
79
+ <dependency >
80
+ <groupId >com.databend</groupId >
81
+ <artifactId >databend-jdbc</artifactId >
82
+ <version >0.3.9</version >
83
+ </dependency >
79
84
80
85
<!-- 7.9.0 及以下需要依赖 apijson-column -->
81
86
<!-- <dependency>-->
Original file line number Diff line number Diff line change @@ -309,6 +309,9 @@ public String gainDBUri() {
309
309
//if (isDoris()) {
310
310
// return "jdbc:mysql://localhost:9030"; //TODO 改成你自己的,TiDB 可以当成 MySQL 使用,默认端口为 4000
311
311
//}
312
+ //if (isDatabend()) {
313
+ // return "jdbc:databend://localhost:8000?disable_session_token=true"; //TODO 改成你自己的
314
+ //}
312
315
313
316
return super .gainDBUri ();
314
317
}
@@ -389,6 +392,9 @@ public String gainDBAccount() {
389
392
//if (isDoris()) {
390
393
// return "root";
391
394
//}
395
+ //if (isDatabend()) {
396
+ // return "root"; //TODO 改成你自己的
397
+ //}
392
398
393
399
return super .gainDBAccount ();
394
400
}
@@ -468,6 +474,9 @@ public String gainDBPassword() {
468
474
//if (isDoris()) {
469
475
// return "apijson";
470
476
//}
477
+ //if (isDatabend()) {
478
+ // return null; //TODO 改成你自己的
479
+ //}
471
480
472
481
return super .gainDBPassword ();
473
482
}
You can’t perform that action at this time.
0 commit comments