WANG 5 년 전
부모
커밋
f2a1035bf5
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/main/java/cn/com/qmth/examcloud/web/support/CustomExceptionHandler.java

+ 0 - 2
src/main/java/cn/com/qmth/examcloud/web/support/CustomExceptionHandler.java

@@ -224,7 +224,6 @@ public class CustomExceptionHandler {
 					|| t instanceof org.springframework.orm.jpa.JpaSystemException
 					|| t instanceof org.springframework.orm.jpa.JpaSystemException
 					|| t instanceof org.springframework.transaction.CannotCreateTransactionException) {
 					|| t instanceof org.springframework.transaction.CannotCreateTransactionException) {
 				httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
 				httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
-				printStackTrace = false;
 			} else {
 			} else {
 				httpStatus = HttpStatus.OK;
 				httpStatus = HttpStatus.OK;
 			}
 			}
@@ -234,7 +233,6 @@ public class CustomExceptionHandler {
 					|| t instanceof org.springframework.orm.jpa.JpaSystemException
 					|| t instanceof org.springframework.orm.jpa.JpaSystemException
 					|| t instanceof org.springframework.transaction.CannotCreateTransactionException) {
 					|| t instanceof org.springframework.transaction.CannotCreateTransactionException) {
 				httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
 				httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
-				printStackTrace = false;
 			} else {
 			} else {
 				httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
 				httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
 			}
 			}