Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
412 views
in Technique[技术] by (71.8m points)

无论浏览器发送什么,Tomcat接收到的都是 -1

无论我在前台发送什么数据,后台接收到的永远是 -1

但是浏览器控制台又显示发送的数据是正常的。


图1是前端代码,图2是浏览器控制台,图3是后台debug的结果。

前端代码

浏览器控制台显示的发送的数据

debug结果


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

http://c.biancheng.net/view/4...
getIntHeader 拿到的是http头部的信息,你要获取的是http里面body里的信息


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...