去除不常用的日志文件打印

This commit is contained in:
648540858
2024-11-03 07:38:42 +08:00
parent a6993b35fd
commit 711fefa168
3 changed files with 4 additions and 29 deletions

View File

@@ -69,8 +69,8 @@ public class LogController {
* 下载指定日志文件
*/
@ResponseBody
@GetMapping("/file")
public void downloadFile(HttpServletResponse response, @RequestParam(required = true) String fileName) {
@GetMapping("/file/{fileName}")
public void downloadFile(HttpServletResponse response, @PathVariable String fileName) {
try {
File file = logService.getFileByName(fileName);
if (file == null || !file.exists() || !file.isFile()) {