zouyu
9 天以前 bf95078dab81dcd0639fdb1a41e998b31c940fb1
src/main/java/com/chinaztt/mes/docx/handler/GlobalExceptionHandler.java
@@ -1,13 +1,13 @@
package com.chinaztt.mes.docx.handler;
import com.chinaztt.mes.docx.util.R;
import com.chinaztt.mes.docx.util.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
@RestControllerAdvice
public class GlobalExceptionHandler {
    @ExceptionHandler({Exception.class})
    public R<?> exception(Exception e) {
        return R.failed(e.getMessage());
    public Result<?> exception(Exception e) {
        return Result.failed(e.getMessage());
    }
}