springboot在接收vue传递的json字符串时报错The valid characters are defined in RFC 7230 and RFC 3986的解决办法:
@Component public class ScTomcatWebServerCustomizer implements WebServerFactoryCustomizer<TomcatServletWebServerFactory> { public ScTomcatWebServerCustomizer() { } @Override public void customize(TomcatServletWebServerFactory factory) { factory.addConnectorCustomizers(connector -> connector.setAttribute("relaxedQueryChars", "{}[]|")); } }