Illegal character in query at index 127: http://192.168.1.7:8080/service-0.0.1-SNAPSHOT/report/genReport/generateReport?reportname=REPORT&doctype=PDF¶m={"StartDate":"20140604","EndDate":"20140630","Range":"10"}
任何人都可以帮助我摆脱这个错误
答案 0 :(得分:0)
你应该对JSON进行urlencode
{"StartDate":"20140604","EndDate":"20140630","Range":"10"}
到
%7B%22StartDate%22%3A%2220140604%22%2C%22EndDate%22%3A%2220140630%22%2C%22Range%22%3A%2210%22%7D
该网址将为
http://192.168.1.7:8080/service-0.0.1-SNAPSHOT/report/genReport/generateReport?reportname=REPORT&doctype=PDF¶m=%7B%22StartDate%22%3A%2220140604%22%2C%22EndDate%22%3A%2220140630%22%2C%22Range%22%3A%2210%22%7D
答案 1 :(得分:-2)