🐛 Fixing a bug. close #3355 Admin 模块启动提示: 使用不当,会额外暴露接口

This commit is contained in:
lbw committed 2021-11-19 11:55:11 +08:00
1 parent 9d1730d9de
commit 028ffa667a
1 file changed
+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");