Most of these problems are container problems. There are two solutions:
1. Maybe the header cache in Tomcat is not enough
tomcat:
# URI encoding of tomcat
uri-encoding: UTF-8
# tomcat maximum number of threads, the default is 200
max-threads: 800
# Tomcat starts the number of threads to initialize, the default value is 25
min-spare-threads: 30
max-http-form-post-size: 2MB
max-http-header-size: 8096
2. If it hasn’t been solved
@Configuration
public class TomcatConfigurer {
@Bean
public TomcatServletWebServerFactory webServerFactory() {
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory();
factory.addConnectorCustomizers((Connector connector) -> {
connector.setProperty("relaxedPathChars", "\"<>[\\]^`{|}");
connector.setProperty("relaxedQueryChars", "\"<>[\\]^`{|}");
});
return factory;
}
}
Read More:
- Asynchronous processing of HTTP request by Java_ Method 1: through callable
- thymeleaf Error: An error happened during template parsing Cannot render error page for request
- [Solved] SpringBoot Error: org.springframework.http.converter.HttpMessageNotReadableException
- Asynchronous processing of HTTP request by Java_ Method 2: through deferredresult
- SpringCloud Use openFeign Multipartfile to Upload Files Error: Current request is not a multipart request
- [Solved] Arthas failed to bind telnet or http port! Telnet port: 3658, http port: 8563;Error creating bean
- IDEA Error: ERROR 16720 —[ restartMain] o.a.coyote. http11.Http119Protocol: Failed to sta
- Consumer service instance error: HTTP get http://xxx/actuator/health: 503 output: {“status”: “out_of_service”
- Springboot Files Upload Limit Error: The field file exceeds its maximum permitted size of 1048576 bytes
- [Solved] No ‘Access-Control-Allow-Origin‘ header is present on the requested resource.errError: Network Error
- How to Solve Springboot Upload Files Error: The field XXX exceeds its maximum permitted size of 1048576 bytes
- [Maven] maven filtering OTS parsing error incorrect file size in WOFF head [Two Methods to Solve]
- [Solved] Springboot2.x ElasticSearch Error: availableProcessors is already set to [4], rejecting [4]
- sqlite plus Error parsing time stamp [How to Solve]
- [Solved] Mybatis add dependencies Error: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
- [Solved] Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration
- [Solved] Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException
- [Solved] Springboot upload failed to find the temporary directory error
- SpringBoot+Swagger Error: 403 Forbidden [How to Solve]
- Java parsing xml file encounters special symbols & will be abnormal solutions