diff --git a/seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/thirdparty/framework/SeaTunnelOptionRuleWrapper.java b/seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/thirdparty/framework/SeaTunnelOptionRuleWrapper.java index 41f307e9a..1e4624dfb 100644 --- a/seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/thirdparty/framework/SeaTunnelOptionRuleWrapper.java +++ b/seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/thirdparty/framework/SeaTunnelOptionRuleWrapper.java @@ -98,7 +98,7 @@ public static FormStructure wrapper( return FormOptionSort.sortFormStructure(formStructureBuilder.build()); } - private static Object getDefaultValue(Option option) { + private static String getDefaultValue(Option option) { Object defValue = option.defaultValue(); if (defValue == null) { return null; @@ -106,7 +106,7 @@ private static Object getDefaultValue(Option option) { if (String.class.equals(option.typeReference().getType())) { return PlaceholderUtil.escapePlaceholders(defValue.toString()); } - return defValue; + return defValue.toString(); } private static List wrapperOptionOptions(