ajax 请求的时候 post 出现 can not present

页面为保图片,图片内容为base64编码的String
然后post的时候  后台出现 can not present

首先想到的是参数不匹配
然后对了好久发现没有问题
后来发现可以试文件参数太大  被限制了
然后一查 发现是
tomcat 默认的参数 大小为1M

将maxPostSize="0" 配置 即可解决

猜你喜欢

转载自guozhijie87.iteye.com/blog/2300835