How can I set relaxedQueryChars
for Spring Boot embedded Tomcat?
The connector attribute described here, but Spring Boot documentation has no such param
I am not sure if you can do this with properties file. I believe this should work
@Component
public class MyTomcatWebServerCustomizer
implements WebServerFactoryCustomizer {
@Override
public void customize(TomcatServletWebServerFactory factory) {
factory.addConnectorCustomizers(new TomcatConnectorCustomizer() {
@Override
public void customize(Connector connector) {
connector.setAttribute("relaxedQueryChars", "yourvaluehere");
}
});
}
}