调整异常类
This commit is contained in:
parent
9a9ae9f336
commit
532653107b
|
|
@ -33,7 +33,6 @@ public class GlobalException {
|
||||||
public AjaxResult<Object> handleException(Exception e) {
|
public AjaxResult<Object> handleException(Exception e) {
|
||||||
if (GlobalConfig.debug) {
|
if (GlobalConfig.debug) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
System.out.println(e.getMessage());
|
|
||||||
}
|
}
|
||||||
log.error("系统异常 {}", e.getMessage());
|
log.error("系统异常 {}", e.getMessage());
|
||||||
return AjaxResult.failed(HttpEnum.SYSTEM_ERROR.getCode(), e.getMessage());
|
return AjaxResult.failed(HttpEnum.SYSTEM_ERROR.getCode(), e.getMessage());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue