a0d2f4d1 by chentao

no message

1 parent 537523c3
...@@ -185,6 +185,7 @@ public class GlobalExceptionHandler { ...@@ -185,6 +185,7 @@ public class GlobalExceptionHandler {
185 */ 185 */
186 @ExceptionHandler(MethodArgumentNotValidException.class) 186 @ExceptionHandler(MethodArgumentNotValidException.class)
187 public R<Void> handleMethodArgumentNotValidException(MethodArgumentNotValidException e) { 187 public R<Void> handleMethodArgumentNotValidException(MethodArgumentNotValidException e) {
188 System.out.println("=============="+e.getMessage());
188 log.error(e.getMessage()); 189 log.error(e.getMessage());
189 String message = e.getBindingResult().getFieldError().getDefaultMessage(); 190 String message = e.getBindingResult().getFieldError().getDefaultMessage();
190 return R.fail(message); 191 return R.fail(message);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!