修复到处错误日志,请求路径不存在问题

(cherry picked from commit ccb7b4f908816f14f21ecef648321d722ac50fc7)
pull/217/head
邹伟华 2019-12-04 14:25:22 +08:00
parent 71e7ecbd67
commit 720e8da0e7
1 changed files with 9 additions and 0 deletions

View File

@ -38,9 +38,18 @@ public class LogController {
@GetMapping(value = "/download")
@PreAuthorize("@el.check()")
public void download(HttpServletResponse response, LogQueryCriteria criteria) throws IOException {
criteria.setLogType("INFO");
logService.download(logService.queryAll(criteria), response);
}
@Log("导出错误数据")
@ApiOperation("导出错误数据")
@GetMapping(value = "/error/download")
@PreAuthorize("@el.check()")
public void errorDownload(HttpServletResponse response, LogQueryCriteria criteria) throws IOException {
criteria.setLogType("ERROR");
logService.download(logService.queryAll(criteria), response);
}
@GetMapping
@ApiOperation("日志查询")
@PreAuthorize("@el.check()")