增加错误提示
This commit is contained in:
parent
74d7519ed1
commit
d6469f158f
|
@ -0,0 +1,7 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="RawUseOfParameterizedType" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="ThrowablePrintStackTrace" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||
</profile>
|
||||
</component>
|
|
@ -12,7 +12,8 @@ public class GlobalExceptionHandler {
|
|||
// 全局异常处理
|
||||
@ExceptionHandler(Exception.class)
|
||||
@ResponseBody
|
||||
public Result error() {
|
||||
public Result error(Exception exception) {
|
||||
exception.printStackTrace();
|
||||
return Result.build(null, ResultCodeEnum.SYSTEM_ERROR);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue