Selaa lähdekoodia

修改文件上传大小的限制,限制在100M。

yangzhijie 6 vuotta sitten
vanhempi
sitoutus
82735b2828
1 muutettua tiedostoa jossa 14 lisäystä ja 2 poistoa
  1. 14 2
      src/main/resources/Application.yml

+ 14 - 2
src/main/resources/Application.yml

@@ -11,7 +11,14 @@ spring:
   application:
     # 应用名称,会在Eureka中作为服务的id标识(serviceId)
     name: gateway-server
-    
+  # 修改文件上传大小的限制
+  servlet:
+    multipart:
+      # 单个文件大小
+      maxFileSize: 100MB
+      # 总文件大小
+      maxRequestSize: 200MB
+
 #Eureka Server服务器地址.
 eureka:
   instance:
@@ -55,7 +62,7 @@ zuul:
       path: /static-wms-app/**
       url: http://127.0.0.1:8083
       strip-prefix: false
-       # 正式的环境去掉该配置
+    # 正式的环境去掉该配置
     pcclient:
       path: /pcapp/**
       url: http://127.0.0.1:8081
@@ -65,6 +72,11 @@ zuul:
       path: /static/**
       url: http://127.0.0.1:8081
       strip-prefix: false
+    # 正式的环境去掉该配置
+    eamclient:
+      path: /eamapp/**
+      url: http://127.0.0.1:8082
+      strip-prefix: false
     fileserver:
       path: /**
       serviceId: file-server