Skip to content

Commit 6900da4

Browse files
committed
test static-locations config
1 parent 1112630 commit 6900da4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/resources/application.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spring:
2222
name: spring-boot-demo
2323
# 在actuator监控中,当属性名中包含:password、secret、key这些敏感词,在返回它们的时候会使用*来掩码
2424
key: test-actuator
25+
web:
26+
resources:
27+
static-locations: classpath:/META-INF/resources/, classpath:/resources/, classpath:/static/, classpath:/public/, file:d:/upload
2528

2629
management:
2730
info:

src/main/resources/resources/d.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d

0 commit comments

Comments
 (0)