server.tomcat.connection-timeout
server.tomcat.connection-timeout是建立连接需要的时间,并非连接处理的时间
spring.mvc.async.request-timeout,异步请求的时间,搭配Callable使用,示例如下:
@GetMapping("/test")
public Callable test2() {
return ()-> {
try {
Thread.sleep(60000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("keep going");
return "foobar";
};
}
3 可以使用过滤器/拦截器代码处理
4 可以使用hystrix处理


