diff --git a/app/build.gradle b/app/build.gradle index 00444e6f91..9d36e34567 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -27,6 +27,7 @@ dependencies { implementation "org.apache.commons:commons-lang3:3.13.0" implementation "com.fasterxml.jackson.core:jackson-databind:2.15.2" implementation "com.h2database:h2:2.2.220" + implementation project(path: ':study') testImplementation "org.assertj:assertj-core:3.24.2" testImplementation "org.junit.jupiter:junit-jupiter-api:5.7.2" diff --git a/jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java b/jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java index 02066afc81..a08f7129f0 100644 --- a/jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java +++ b/jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java @@ -1,9 +1,5 @@ package org.springframework.jdbc.core; -import org.springframework.jdbc.datasource.DataSourceUtils; -import org.springframework.jdbc.transaction.TransactionManager; -import org.springframework.transaction.support.TransactionSynchronizationManager; - import javax.sql.DataSource; import java.sql.Connection; import java.sql.PreparedStatement; @@ -13,8 +9,7 @@ import java.util.Optional; import static java.util.Collections.singletonList; -import static org.springframework.jdbc.datasource.DataSourceUtils.*; -import static org.springframework.transaction.support.TransactionSynchronizationManager.*; +import static org.springframework.jdbc.datasource.DataSourceUtils.getConnection; public class JdbcTemplate { diff --git a/jdbc/src/main/java/org/springframework/jdbc/transaction/TransactionManager.java b/jdbc/src/main/java/org/springframework/jdbc/transaction/TransactionManager.java index f160e9ab7c..4a110268e2 100644 --- a/jdbc/src/main/java/org/springframework/jdbc/transaction/TransactionManager.java +++ b/jdbc/src/main/java/org/springframework/jdbc/transaction/TransactionManager.java @@ -1,15 +1,11 @@ package org.springframework.jdbc.transaction; -import org.springframework.jdbc.datasource.DataSourceUtils; -import org.springframework.transaction.support.TransactionSynchronizationManager; - import javax.sql.DataSource; import java.sql.Connection; import java.sql.SQLException; -import static org.springframework.jdbc.datasource.DataSourceUtils.*; +import static org.springframework.jdbc.datasource.DataSourceUtils.getConnection; import static org.springframework.jdbc.datasource.DataSourceUtils.releaseConnection; -import static org.springframework.transaction.support.TransactionSynchronizationManager.*; public class TransactionManager {