zouyu
2026-04-03 625c4f2816d171bbe8cf264e23d3bec0c11e3b86
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());
    }
}