Commit 5e36b3a7 by 丁伟峰

继续test

1 parent b92bc190
......@@ -29,6 +29,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler(BindException.class)
public ResponseEntity<ErrorResponse> handleBindException(BindException ex) {
log.error("$$$$$$$$$$$$$$$$$$$$ ====> {}", ex.toString());
List<String> errors = new ArrayList<>();
for (ObjectError error : ex.getBindingResult().getAllErrors()) {
errors.add(error.getDefaultMessage());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!