瀏覽代碼

增加外部文件目录静态资源访问配置

luoshi 2 年之前
父節點
當前提交
b2b8ba8886
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      api-demo/src/main/resources/application.properties

+ 2 - 2
api-demo/src/main/resources/application.properties

@@ -1,10 +1,10 @@
 server.port=8080
-
+spring.resources.static-locations=classpath:/static/,file:/Users/luoshi/Downloads/
 management.endpoints.web.exposure.include=health,metrics,prometheus
 
 #com.qmth.api.uri-prefix=/aaa
 com.qmth.api.global-auth=false
-com.qmth.api.trace-request=true
+com.qmth.api.http-trace=true
 #com.qmth.api.global-strict=false
 #com.qmth.api.global-rate-limit=1/5s