yxk-20260709

文件在线预览功能
This commit is contained in:
ye1023
2026-07-09 10:18:56 +08:00
parent 2b43488245
commit 4bb9e82bad
2 changed files with 153 additions and 1 deletions
@@ -256,6 +256,7 @@ public class ShiroConfig {
filterMap.put("jwt", new JwtFilter(cloudServer==null));
shiroFilterFactoryBean.setFilters(filterMap);
// <!-- 过滤链定义,从上向下顺序执行,一般将/**放在最为下边
filterChainDefinitionMap.put("/sys/file/previewDownload", "anon");//kkFileView short-lived preview stream
filterChainDefinitionMap.put("/**", "jwt");
// 未授权界面返回JSON