Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
@Bean
public ConfigurableServletWebServerFactory webServerFactory() {
TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
tomcat.addConnectorCustomizers(new TomcatConnectorCustomizer() {
@Override
public void customize(Connector connector) {
connector.setProperty("relaxedQueryChars", "|{}[]");
}
});
return factory;
}
标签:characters,defined,RFC,valid,7230,3986
From: https://www.cnblogs.com/Leechg/p/16773260.html