|
|
|
@ -21,7 +21,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.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@ -38,7 +38,7 @@ import org.springframework.transaction.support.TransactionTemplate;
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass({ TransactionTemplate.class, PlatformTransactionManager.class })
|
|
|
|
|
@ConditionalOnSingleCandidate(PlatformTransactionManager.class)
|
|
|
|
|
@AutoConfigureAfter({ JtaAutoConfiguration.class, JpaBaseConfiguration.class,
|
|
|
|
|
@AutoConfigureAfter({ JtaAutoConfiguration.class, HibernateJpaAutoConfiguration.class,
|
|
|
|
|
DataSourceTransactionManagerAutoConfiguration.class })
|
|
|
|
|
public class TransactionAutoConfiguration {
|
|
|
|
|
|
|
|
|
|