Commit 7749ea3421f6cc48a59db04bc9babfb8a404d740

Authored by dsk
1 parent cec266d3

新增接口超时时间配置,修复点播超时的情况下报错org.springframework.web.context.request.async.AsyncRequestTimeoutException

src/main/resources/all-application.yml
@@ -5,6 +5,10 @@ @@ -5,6 +5,10 @@
5 5
6 6
7 spring: 7 spring:
  8 + # 设置接口超时时间
  9 + mvc:
  10 + async:
  11 + request-timeout: 20000
8 # [可选]上传文件大小限制 12 # [可选]上传文件大小限制
9 servlet: 13 servlet:
10 multipart: 14 multipart:
src/main/resources/application-dev.yml
1 spring: 1 spring:
  2 + # 设置接口超时时间
  3 + mvc:
  4 + async:
  5 + request-timeout: 20000
2 thymeleaf: 6 thymeleaf:
3 cache: false 7 cache: false
4 # [可选]上传文件大小限制 8 # [可选]上传文件大小限制