Skip to content

Commit b8a5d33

Browse files
committed
Java:MultiDataSource 解决启动自检报错被测远程函数对应方法不存在
1 parent 842a5cd commit b8a5d33

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,51 @@ public void verifyGroupUrlLike(@NotNull JSONObject curObj, String urlLike) throw
280280
throw new IllegalArgumentException(urlLike + "必须以包含有效 URL 字符!");
281281
}
282282
}
283+
284+
// 必须重写以下方法,否则启动自检报错方法不存在
285+
@Override
286+
public int countArray(JSONObject curObj, String array) {
287+
return super.countArray(curObj, array);
288+
}
289+
290+
@Override
291+
public int countObject(JSONObject curObj, String object) {
292+
return super.countObject(curObj, object);
293+
}
294+
295+
@Override
296+
public boolean isContainKey(JSONObject curObj, String object, String key) {
297+
return super.isContainKey(curObj, object, key);
298+
}
299+
300+
@Override
301+
public boolean isContainValue(JSONObject curObj, String object, String value) {
302+
return super.isContainValue(curObj, object, value);
303+
}
304+
305+
@Override
306+
public Object getFromArray(JSONObject curObj, String array, String position) {
307+
return super.getFromArray(curObj, array, position);
308+
}
309+
310+
@Override
311+
public Object getFromObject(JSONObject curObj, String object, String key) {
312+
return super.getFromObject(curObj, object, key);
313+
}
314+
315+
@Override
316+
public JSONObject getFunctionDemo(JSONObject curObj) {
317+
return super.getFunctionDemo(curObj);
318+
}
319+
320+
@Override
321+
public Object getWithDefault(JSONObject curObj, String value, String defaultValue) {
322+
return super.getWithDefault(curObj, value, defaultValue);
323+
}
324+
325+
@Override
326+
public String getFunctionDetail(JSONObject curObj) {
327+
return super.getFunctionDetail(curObj);
328+
}
329+
283330
}

0 commit comments

Comments
 (0)