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日志
最新发布