有时候我在Spring(Spring Boot 2.2.0 RC1)日志文件中收到此消息。
Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
据我从以下答案中了解: https://github.com/webpack/webpack-dev-server/issues/578#issuecomment-569121500 ...这是因为HTTPS请求而不是HTTP。
但是我的问题有所不同-我还计划了(@Scheduled(initialDelayString =“ 10000”,fixedDelayString =“ 300000”))方法,该方法会定期对postgres进行查询,并由记录器将日志写入spring日志。但是在发生此http错误之后,没有新的日志消息出现,因此必须重新启动spring-app。
我该如何解决?