关键字为数字时,条件任意选择,分页显示是正常的;
关键字为中文时,分页的第一页是正常,点击下一页就会报错?
跪求解答!!感谢
根号申 发表于2019-12-10 16:14
给出控制台的完整异常日志
info_content
师
like
十二月 10, 2019 4:20:22 下午 org.apache.coyote.http11.Http11Processor service
信息: 解析 HTTP 请求 header 错误
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:468)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:260)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1591)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
已经在群里回答你了,可以参照网友文章,将tomcat的url设置为支持中文
根号申 发表于2019-12-11 09:01
已经在群里回答你了,可以参照网友文章,将tomcat的url设置为支持中文
老师,仍会报错
根号申 发表于2019-12-11 09:01
已经在群里回答你了,可以参照网友文章,将tomcat的url设置为支持中文
代码也有相应的转码操作