Compare commits
No commits in common. "fb63be8cf4a22fb15d6bb29552f8650c983304af" and "816fb0a0d7b47d1aa7cfcf85824b37b69992217a" have entirely different histories.
fb63be8cf4
...
816fb0a0d7
|
|
@ -8,10 +8,8 @@ import com.bonus.common.core.exception.auth.NotPermissionException;
|
|||
import com.bonus.common.core.exception.auth.NotRoleException;
|
||||
import com.bonus.common.core.utils.StringUtils;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.http.converter.HttpMessageNotReadableException;
|
||||
import org.springframework.validation.BindException;
|
||||
import org.springframework.web.HttpRequestMethodNotSupportedException;
|
||||
import org.springframework.web.bind.MethodArgumentNotValidException;
|
||||
|
|
@ -170,13 +168,4 @@ public class GlobalExceptionHandler
|
|||
{
|
||||
return AjaxResult.error("演示模式,不允许操作");
|
||||
}
|
||||
|
||||
/**
|
||||
* 无效参数异常
|
||||
*/
|
||||
@ExceptionHandler(HttpMessageNotReadableException.class)
|
||||
public AjaxResult handleHttpMessageNotReadableException(HttpMessageNotReadableException e)
|
||||
{
|
||||
return AjaxResult.error("参数类型错误");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue