首页 > 其他分享 >解决get请求特殊字符问题

解决get请求特殊字符问题

时间:2022-09-05 09:00:42浏览次数:65  
标签:TomcatServletWebServerFactory 请求 get connector fa setProperty 特殊字符

@Bean
public ServletWebServerFactory webServerFactory() {
TomcatServletWebServerFactory fa = new TomcatServletWebServerFactory();
fa.addConnectorCustomizers(connector -> {
connector.setProperty("relaxedPathChars", ""<>[\]^{|}"); connector.setProperty("relaxedQueryChars", "\"<>[\\]^{|}");
});
return fa;
}

标签:TomcatServletWebServerFactory,请求,get,connector,fa,setProperty,特殊字符
From: https://www.cnblogs.com/hhs-5120/p/16656855.html

相关文章