Commit 4513c5f7 by tyfanchz

去除商品简介的校验

1 parent 3a7732cc
package com.glsx.shop.bean.exception; package com.glsx.shop.bean.exception;
import javax.validation.ConstraintViolationException;
import com.glsx.shop.bean.vo.front.Rets; import com.glsx.shop.bean.vo.front.Rets;
import org.apache.shiro.authz.UnauthorizedException; import org.apache.shiro.authz.UnauthorizedException;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -44,7 +45,7 @@ public class GlobalExceptionHandler { ...@@ -44,7 +45,7 @@ public class GlobalExceptionHandler {
* @param e 异常 * @param e 异常
* @return 异常信息 * @return 异常信息
*/ */
@ExceptionHandler({BindException.class}) @ExceptionHandler({BindException.class, ConstraintViolationException.class})
public Object handleBindException(Exception e) { public Object handleBindException(Exception e) {
this.logger.error("!!!! ERROR", e); this.logger.error("!!!! ERROR", e);
return Rets.failure(ApplicationExceptionEnum.PARAM_ERROR.exception()); return Rets.failure(ApplicationExceptionEnum.PARAM_ERROR.exception());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!