diff --git a/nflg_project_dev/nflg-boot-base/nflg-boot-core/src/main/java/com/nflg/product/base/core/exception/BaseGlobalExceptionHandle.java b/nflg_project_dev/nflg-boot-base/nflg-boot-core/src/main/java/com/nflg/product/base/core/exception/BaseGlobalExceptionHandle.java index c9fcfa81..6e43b547 100644 --- a/nflg_project_dev/nflg-boot-base/nflg-boot-core/src/main/java/com/nflg/product/base/core/exception/BaseGlobalExceptionHandle.java +++ b/nflg_project_dev/nflg-boot-base/nflg-boot-core/src/main/java/com/nflg/product/base/core/exception/BaseGlobalExceptionHandle.java @@ -105,7 +105,7 @@ public class BaseGlobalExceptionHandle { public ResultVO handleDataIntegrityViolationException(DataIntegrityViolationException e) { log.error(e.getMessage(), e); // return ResultVO.error("字段太长,超出数据库字段的长度"); - return ResultVO.error("数据不完整"); + return ResultVO.error("数据库异常"); } @ExceptionHandler(value = SQLException.class) @@ -129,7 +129,7 @@ public class BaseGlobalExceptionHandle { public ResultVO handleDataAccessException(BadSqlGrammarException e) { log.error(e.getMessage(),e); //throw new NflgBusinessException(STATE.Error, "sql 语法错误,系统错误,请联系管理员"); - return ResultVO.error("sql 语法错误,系统错误,请联系管理员"); + return ResultVO.error("sql 语法错误,请联系管理员"); } @ExceptionHandler(value = MethodArgumentNotValidException.class)