mirror of https://github.com/elunez/eladmin
优化tomcat配置relaxedQueryChars方式
parent
0a85606449
commit
dc5696c193
|
@ -1,7 +1,16 @@
|
||||||
@Configuration(proxyBeanMethods = false)
|
package me.zhengjie.config;
|
||||||
public class RelaxedQueryCharsConnectorCustomizer implements TomcatConnectorCustomizer {
|
|
||||||
@Override
|
import org.apache.catalina.connector.Connector;
|
||||||
public void customize(Connector connector) {
|
import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
|
||||||
connector.setProperty("relaxedQueryChars", "[]{}");
|
import org.springframework.context.annotation.Configuration;
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* @author bearBoy80
|
||||||
|
*/
|
||||||
|
@Configuration(proxyBeanMethods = false)
|
||||||
|
public class RelaxedQueryCharsConnectorCustomizer implements TomcatConnectorCustomizer {
|
||||||
|
@Override
|
||||||
|
public void customize(Connector connector) {
|
||||||
|
connector.setProperty("relaxedQueryChars", "[]{}");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue