Browse Source

:construction_worker: 添加静态资源路径

lag 7 months ago
parent
commit
35d3d23f96

+ 5 - 1
download-center-server/src/main/resources/profile/dev/application.yml

@@ -1,5 +1,9 @@
 spring:
   application:
     name: downloadPictures
+  resources:
+    static-locations: file:/disk/shipCover
+  mvc:
+    static-path-pattern: /static/**
 server:
-  port: 8090
+  port: 8090

+ 5 - 1
download-center-server/src/main/resources/profile/test/application.yml

@@ -1,5 +1,9 @@
 spring:
   application:
     name: downloadPictures
+  resources:
+    static-locations: file:/disk/shipCover
+  mvc:
+    static-path-pattern: /static/**
 server:
-  port: 8090
+  port: 8090