File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/main/java/apijson/framework Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ public String gainDBUri() {
122
122
if (isOracle ()) {
123
123
return "jdbc:oracle:thin:@localhost:1521:orcl" ; //TODO 改成你自己的
124
124
}
125
+ if (isDoris ()) {
126
+ return "jdbc:mysql://localhost:9030" ; //TODO 改成你自己的,TiDB 可以当成 MySQL 使用,默认端口为 4000
127
+ }
125
128
return null ;
126
129
}
127
130
@@ -138,6 +141,9 @@ public String gainDBAccount() {
138
141
if (isOracle ()) {
139
142
return "scott" ; //TODO 改成你自己的
140
143
}
144
+ if (isDoris ()) {
145
+ return "root" ; //TODO 改成你自己的
146
+ }
141
147
return null ;
142
148
}
143
149
@@ -154,6 +160,9 @@ public String gainDBPassword() {
154
160
if (isOracle ()) {
155
161
return "tiger" ; //TODO 改成你自己的
156
162
}
163
+ if (isDoris ()) {
164
+ return "" ; //TODO 改成你自己的
165
+ }
157
166
return null ;
158
167
}
159
168
You can’t perform that action at this time.
0 commit comments