Skip to content

Commit 0590709

Browse files
committedMar 2, 2025
Java:Demo 新增 ManticoreSearch-替代 Elasticsearch 的轻量级搜索引擎,兼容 MySQL 协议
1 parent fe33c46 commit 0590709

File tree

1 file changed

+9
-0
lines changed
  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/demo

1 file changed

+9
-0
lines changed
 

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/demo/DemoSQLConfig.java

+9
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ public String getDBUri() {
248248
if (isMilvus()) {
249249
return "http://localhost:19530"; //TODO 改成你自己的
250250
}
251+
//if (isManticore()) {
252+
// return "jdbc:mysql://localhost:3306?characterEncoding=utf8&maxAllowedPacket=512000"; //TODO 改成你自己的
253+
//}
251254
// if (isIoTDB()) {
252255
// return "jdbc:iotdb://localhost:6667"; // ?charset=GB18030 加参数会报错 URI 格式错误 //TODO 改成你自己的
253256
// }
@@ -318,6 +321,9 @@ public String getDBAccount() {
318321
if (isMilvus()) {
319322
return "root";
320323
}
324+
//if (isManticore()) {
325+
// return "root";
326+
//}
321327
// if (isIoTDB()) {
322328
// return "root";
323329
// }
@@ -387,6 +393,9 @@ public String getDBPassword() {
387393
if (isMilvus()) {
388394
return "apijson"; //TODO 改成你自己的
389395
}
396+
//if (isManticore()) {
397+
// return null;
398+
//}
390399
// if (isIoTDB()) {
391400
// return "root";
392401
// }

0 commit comments

Comments
 (0)
Please sign in to comment.