Skip to content

Commit

Permalink
feat: ThreadLocal에 datasoure가 없는 경우에 대한 처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ503 committed Oct 10, 2023
1 parent 559cb38 commit ea8fa73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private TransactionSynchronizationManager() {}
public static Connection getResource(DataSource key) {
final Map<DataSource, Connection> connectionHolder = resources.get();

if (connectionHolder == null) {
if (connectionHolder == null || !connectionHolder.containsKey(key)) {
return null;
}

Expand Down

0 comments on commit ea8fa73

Please sign in to comment.