微服务版后端初始化
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
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("认证中心错误,请联系管理员!");
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user