mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 12:39:05 +08:00
🐛 Fixing a bug. close #3355 Admin 模块启动提示: 使用不当,会额外暴露接口
This commit is contained in:
1 parent
9d1730d9de
commit
028ffa667a
1 file changed
+1
-1
+1
-1
@@ -104,7 +104,7 @@ public class SysFileController {
|
||||
* @param response 本地文件
|
||||
*/
|
||||
@SneakyThrows
|
||||
@GetMapping("/local/{fileName}")
|
||||
@GetMapping("/local/file/{fileName}")
|
||||
public void localFile(@PathVariable String fileName, HttpServletResponse response) {
|
||||
ClassPathResource resource = new ClassPathResource("file/" + fileName);
|
||||
response.setContentType("application/octet-stream; charset=UTF-8");
|
||||
|
||||
Reference in new issue
Block a user