问题描述
我写小休竖线。并在我的垂直表上提交。我收到了 Io.netty.handler.codec.http.multipart.HttpPostRequestDecoder$ErrorDataDecoderException:java.io.IO异常:大小超过允许的最大容量
如果我在JsonObject上发送表单数据,则一切正常。
router.route().handler(BodyHandler.create());
router.post("/user/input").handler(this::complete);
如果我想提交表单,我是否应该使用另一个BodyHandler??
我的应用程序使用应用程序/json和应用程序/x-www-form-urlencode
推荐答案
当表单属性的大小大于配置的最大值时,会出现此异常。
您可以使用setMaxFormAttributeSize