<constant name="struts.multipart.maxSize" value="52428800" />
private static final int MAX_POST_SIZE = 10 * 1024 * 1024
int length = request.getContentLength()
if (length >MAX_POST_SIZE) {
throw new IOException(" length + " exceeds limit of " + MAX_POST_SIZE )
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)