old: text/html;charset=utf-8, new: text/html; charset=utf-8

今天JSP页面报错:

HTTP Status 500 - /manage/top.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurrences of contentType with
 different values (old: text/html;charset=utf-8, new: text/html; charset=utf-8)


一看就是编码问题,找了半天都没问题啊 都是utf-8 ,找了半天 挨个页面检查了一遍都是utf-8,最后瞪大眼睛好好看了看 old: text/html;charset=utf-8, new: text/html; charset=utf-8

old中charset=utf-8前面没有空格,new中charset=utf-8前面有个空格,最后找到old删掉空格重新运行  成功!


教训: 一定要睁大眼睛  一定要仔细   大哭

都是泪啊!

POST /zt_rec/stationif/receive HTTP/1.1 Host: 10.41.0.85 Remote_Addr: 10.141.1.181 X-REAL-IP: 10.141.1.181 X-Forwarded-For: 10.241.100.89, 10.41.0.85, 10.141.1.181 Content-Length: 1659 binfile-md5: mm binfile-gzip: false binfile-auth: myTicket Content-Type: multipart/form-data; boundary=ypm4nr-tfJntYDcZKjYbQoyJMsGzRR8Sk7z; charset=UTF-8 User-Agent: Apache-HttpClient/4.5.14 (Java/1.8.0_102) Accept-Encoding: gzip,deflate --ypm4nr-tfJntYDcZKjYbQoyJMsGzRR8Sk7z Content-Disposition: form-data; name="binFile"; filename="TRC_EXETCPU_REQ_S0085410010010_20250224160012808.json" Content-Type: application/json; charset=UTF-8 Content-Transfer-Encoding: binary {"discountFee":2265,"feeMileage":50316,"exTollStationName":"郑州西南","splitProvince":[{"serProvinceId":"410201","id":"S008541001001020103202025022415453508000","tollFee":0}],"fee":0,"enTollLaneHex":"4101FDEC1F","etcCardType":1,"preBalance":45933,"obuTotalDiscountAmount":0,"totalCount":6,"feeRate":1.0,"spcRateVersion":"20250221001","identification":2,"payFee":2265,"cardTotalAmount":1980,"provTransCount":6,"mediaNo":"4101174103618496","vehicleClass":0,"enTime":"2025-02-24T15:24:04","id":"S008541001001020103202025022415453508","vehicleId":"豫A03898_0","vehicleType":1,"vehicleSign":"0xff","obuTotalAmount":2085,"terminalNo":"214100030AAA","exitFeeType":1,"transFee":0,"passId":"014101164922010207194220250224152404","mediaType":1,"shortFeeMileage":50316,"postBalance":45933,"enTollLaneId":"S00854100100501010310","transType":"09","provinceCount":1,"cardId":"41011649220102071942","TAC":"BEB33A0A","transPayType":1,"obuSign":2,"enTollStationName":"河南唐庄站","noCardCount":0,"exTime":"2025-02-24T15:58:28","exTollLaneId":"S00854100100102010320","terminalTransNo":"007FBB03","identifyVehicleId":"豫A03898_0","shortFee":2300,"obuProvinceFee":1980} --ypm4nr-tfJntYDcZKjYbQoyJMsGzRR8Sk7z Content-Disposition: form-data; name="filename" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TRC_EXETCPU_REQ_S0085410010010_20250224160012808.json --ypm4nr-tfJntYDcZKjYbQoyJMsGzRR8Sk7z-- 使用springboot框架接收上面的文件,每秒大概6m,几百个文件,要求能够接受并转发到其他服务器上,每天新建一个文件夹,发送失败时存到每天新建的文件夹后后重发,7天删除一次文件夹,避免内存泄露、代码写注释和log日志
最新发布
03-13
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值