22 lines
580 B
Java
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("认证中心错误,请联系管理员!");
|
|
// }
|
|
|
|
|
|
|
|
} |