Joburgess 5 년 전
부모
커밋
b7f84903c1
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/BaseServiceImpl.java

+ 9 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/BaseServiceImpl.java

@@ -155,6 +155,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
 			if(ps!=null){
 				ps.close();
 			}
+			if(null!=connection){
+				connection.close();
+			}
 			if(sqlSession!=null){
 				sqlSession.close();
 			}
@@ -217,6 +220,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
 			if(ps!=null){
 				ps.close();
 			}
+			if(null!=connection){
+				connection.close();
+			}
 			if(sqlSession!=null){
 				sqlSession.close();
 			}
@@ -249,6 +255,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
 			if(ps!=null){
 				ps.close();
 			}
+			if(null!=connection){
+				connection.close();
+			}
 			if(sqlSession!=null){
 				sqlSession.close();
 			}