修改生产环境异常处理类

This commit is contained in:
ajaxfan
2021-04-16 16:56:22 +08:00
parent 1f3762bdb0
commit f0f826109c

View File

@ -77,7 +77,7 @@ public class BusinessExceptionHandlerAdvicePro {
* @param exception ServiceErrorException异常对象
* @return 响应
*/
@ExceptionHandler({ TransactionSystemException.class, RmTransactionException.class })
@ExceptionHandler(value = MethodArgumentNotValidException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
public BaseResponse<String> handleInvalidMethodArgException(HttpServletRequest request,
MethodArgumentNotValidException exception) {