http转https证书的时候报错

时间:2024-04-09 14:35:39

http转https证书的时候报错
[http-nio-8066-exec-6] INFO o.a.c.h.Http11Processor - [log,175] -
Error parsing HTTP request header
Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBU
G level.
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP
method names must be tokens
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11Inp
utBuffer.java:414)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java
:294)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLig
ht.java:66)
at org.apache.coyote.AbstractProtocolConnectionHandler.process(AbstractProtocol.java:791)atorg.apache.tomcat.util.net.NioEndpointConnectionHandler.process(Abstract Protocol.java:791) at org.apache.tomcat.util.net.NioEndpointSocketProcessor.doRun(NioEndpo
int.java:1417)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBas
e.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutorWorker.run(UnknownSource)atorg.apache.tomcat.util.threads.TaskThreadWorker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThreadWrappingRunnable.run(TaskTh
read.java:61)
at java.lang.Thread.run(Unknown Source)
代码是
SpringBoot里的.yml中的配置
http转https证书的时候报错
HttpsConfig的配置
http转https证书的时候报错请问是为什么