首页 > 其他分享 >The valid characters are defined in RFC 7230 and RFC 3986

The valid characters are defined in RFC 7230 and RFC 3986

时间:2022-10-09 18:57:29浏览次数:51  
标签:characters defined RFC valid 7230 3986

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

相关文章