Files
geg-gas-pcitc/xjrsoft-auth/src/main/java/com/xjrsoft/auth/handler/MyExceptionHandler.java
2025-02-08 17:51:37 +08:00

22 lines
580 B
Java

package com.xjrsoft.auth.handler;
import com.xjrsoft.common.core.domain.result.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
@ControllerAdvice
@Slf4j
public class MyExceptionHandler {
// @ResponseBody
// @ExceptionHandler(value =Exception.class)
// public R exceptionHandler(Exception e){
// e.printStackTrace();
// return R.error("认证中心错误,请联系管理员!");
// }
}