From 8cf200211dda107426b0dd630e9a4a83f21cca1e Mon Sep 17 00:00:00 2001 From: zillionme Date: Wed, 11 Oct 2023 14:17:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8A=B8=EB=9E=9C=EC=9E=AD=EC=85=98=20?= =?UTF-8?q?=EB=8F=99=EA=B8=B0=ED=99=94=20=EB=A7=A4=EB=8B=88=EC=A0=80=20unb?= =?UTF-8?q?ind=EC=97=90=20=EC=8A=A4=EB=A0=88=EB=93=9C=20=EB=A1=9C=EC=BB=AC?= =?UTF-8?q?=EC=97=90=20=EB=8C=80=ED=95=9C=20=EC=9E=90=EC=9B=90=20=ED=95=B4?= =?UTF-8?q?=EC=A0=9C=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../transaction/support/TransactionSynchronizationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdbc/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java b/jdbc/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java index 7ee9e06a2f..dad482d544 100644 --- a/jdbc/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java +++ b/jdbc/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java @@ -30,7 +30,7 @@ public static void bindResource(DataSource key, ConnectionHolder value) { public static ConnectionHolder unbindResource(DataSource key) { Map map = resources.get(); - if (map == null || !map.containsKey(key)) { + if (map.isEmpty() || !map.containsKey(key)) { // 새로 추가된 코드: map이 비어있다면, 스레드 로컬에서 Map 객체를 삭제 return null; } return map.remove(key);