serv-权限+文件下载

This commit is contained in:
2025-10-18 17:57:14 +08:00
parent e0f4815d48
commit b3424e554f
30 changed files with 235 additions and 105 deletions

View File

@@ -78,4 +78,16 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<parameters>true</parameters>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -46,7 +46,7 @@ file:
- type: local
enabled: true
base-path: ./uploads
url-prefix: http://localhost:8080/files
# MinIO存储配置如不需要可以删除或设置enabled为false
# - type: minio
@@ -55,8 +55,10 @@ file:
# access-key: minioadmin
# secret-key: minioadmin
# bucket-name: school-news
# 服务端口
server:
port: 8086
# 认证配置
school-news:
auth:
# 免登录白名单 - file模块
white-list:
- "/file/download/**"