mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
✨ 添加获取指定路径文件信息的 API
This commit is contained in:
@@ -46,9 +46,9 @@ public class GlobleExceptionHandler {
|
||||
* 不存在的文件异常
|
||||
*/
|
||||
@ExceptionHandler({NotExistFileException.class})
|
||||
@ResponseStatus(HttpStatus.NOT_FOUND)
|
||||
public String notExistFile(Exception ex) {
|
||||
return "error/404";
|
||||
@ResponseBody
|
||||
public ResultBean notExistFile(Exception ex) {
|
||||
return ResultBean.error("文件不存在");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user