yaowanxin
2025-07-24 9ff6b2fa38167d93de00e6d730d2b038d7731776
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.chinaztt.mes.docx.handler;
 
import com.chinaztt.mes.docx.util.R;
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());
    }
}