YvCeung commented on code in PR #7430: URL: https://github.com/apache/incubator-seata/pull/7430#discussion_r2139513951
########## core/src/main/java/org/apache/seata/core/rpc/netty/http/ParameterParser.java: ########## @@ -26,19 +26,28 @@ import java.lang.reflect.Parameter; import java.util.List; import java.util.Map; +import java.util.Optional; + import org.apache.seata.common.rpc.http.HttpContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static com.fasterxml.jackson.databind.SerializationFeature.FAIL_ON_EMPTY_BEANS; +/** + * A utility class for parsing HTTP request parameters and converting them into Java objects. + * Supports various parameter types including request params, request body, model attributes, etc. + */ public class ParameterParser { private static final Logger LOGGER = LoggerFactory.getLogger(ParameterParser.class); private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper() .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false).configure(FAIL_ON_EMPTY_BEANS, false); + private static final String DEFAULT_NONE = "\n\t\t\n\t\t\n\ue000\ue001\ue002\n\t\t\t\t\n"; Review Comment: In the seata-core module, spring-web cannot be relied on, so a custom value of the same needs to be defined -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org