springboot swagger文件批量上传问题

问题1:

springboot swagger不支持批量上传文件,批量上传接收的数据是空

问题2:

The valid characters are defined in RFC 7230 and RFC 3986  

根因是tomcat7之后,严格限制了url。

@Component
public class PortalTomcatWebServerCustomizer implements WebServerFactoryCustomizer {


@Override
public void customize(WebServerFactory container) {
TomcatServletWebServerFactory containerFactory = (TomcatServletWebServerFactory) container;
containerFactory.addConnectorCustomizers(new TomcatConnectorCustomizer() {
@Override
public void customize(Connector connector) {
connector.setProperty("relaxedQueryChars", "[]|-\\:{}^.<>");
connector.setProperty("relaxedPathChars", "[]|-\\:");
}
});
}
}
上一篇:linux--neo4j安装


下一篇:golang--监听文件夹内容变化