|
|
@@ -29,7 +29,7 @@ import org.springframework.web.method.annotation.MethodArgumentTypeMismatchExcep
|
|
|
* @author Lion Li
|
|
|
*/
|
|
|
@Slf4j
|
|
|
-@RestControllerAdvice
|
|
|
+//@RestControllerAdvice
|
|
|
public class GlobalExceptionHandler {
|
|
|
|
|
|
/**
|
|
|
@@ -118,7 +118,7 @@ public class GlobalExceptionHandler {
|
|
|
@ExceptionHandler(RuntimeException.class)
|
|
|
public R<Void> handleRuntimeException(RuntimeException e, HttpServletRequest request) {
|
|
|
String requestURI = request.getRequestURI();
|
|
|
- log.error("请求地址'{}',发生未知异常.", requestURI, e);
|
|
|
+ log.error("请求地址'{}',发生未知异常.{}", requestURI, e);
|
|
|
return R.fail(e.getMessage());
|
|
|
}
|
|
|
|