请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

post 提交表单json格式,items 是{[]}出现bag htttprequest 400 怎么解决

Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:467)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocolConnectionHandler.process(AbstractProtocol.java:834)atorg.apache.tomcat.util.net.NioEndpointConnectionHandler.process(AbstractProtocol.java:834) at org.apache.tomcat.util.net.NioEndpointConnectionHandler.process(AbstractProtocol.java:834)atorg.apache.tomcat.util.net.NioEndpointSocketProcessor.doRun(NioEndpoint.java:1415)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)atorg.apache.tomcat.util.threads.TaskThreadWorker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThreadWorker.run(ThreadPoolExecutor.java:624)atorg.apache.tomcat.util.threads.TaskThreadWrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

正在回答 回答被采纳积分+3

1回答

廖师兄 2019-03-09 00:00:48

是用postman提交的吗?应该是请求方式选错了,你截图发一下。

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_阿俊 #1
    请求方式写错了!
    回复 有任何疑惑可以回复我~ 2019-03-09 00:03:34
  • 廖师兄 回复 提问者 qq_阿俊 #2
    可以具体截图说一下,给后面学习的同学借鉴下。
    回复 有任何疑惑可以回复我~ 2019-03-09 00:14:38
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信