|
|
|
@ -24,7 +24,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate;
|
|
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
@ -41,7 +41,7 @@ import org.springframework.transaction.support.TransactionTemplate;
|
|
|
|
|
*/
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass(PlatformTransactionManager.class)
|
|
|
|
|
@AutoConfigureAfter({ JtaAutoConfiguration.class, JpaBaseConfiguration.class,
|
|
|
|
|
@AutoConfigureAfter({ JtaAutoConfiguration.class, HibernateJpaAutoConfiguration.class,
|
|
|
|
|
DataSourceTransactionManagerAutoConfiguration.class })
|
|
|
|
|
@EnableConfigurationProperties(TransactionProperties.class)
|
|
|
|
|
public class TransactionAutoConfiguration {
|
|
|
|
|