提交 7de045d7 authored 作者: zhangshuang's avatar zhangshuang

bug修改

上级 02946cb4
package com.zjty.efs.union.config;
import org.springframework.context.annotation.Bean;
import org.springframework.web.context.request.async.TimeoutCallableProcessingInterceptor;
import org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
public class WebMvcConfig extends WebMvcConfigurerAdapter {
@Override
public void configureAsyncSupport(final AsyncSupportConfigurer configurer) {
configurer.setDefaultTimeout(20000);
configurer.registerCallableInterceptors(timeoutInterceptor());
}
@Bean
public TimeoutCallableProcessingInterceptor timeoutInterceptor() {
return new TimeoutCallableProcessingInterceptor();
}
}
...@@ -22,6 +22,8 @@ spring.servlet.multipart.max-request-size=100MB ...@@ -22,6 +22,8 @@ spring.servlet.multipart.max-request-size=100MB
server.tomcat.max-http-form-post-size=-1 server.tomcat.max-http-form-post-size=-1
server.connection-timeout=1200000
file.address=/Users/ljj/software/ftp file.address=/Users/ljj/software/ftp
# SSL config f # SSL config f
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论