|
|
|
@ -38,6 +38,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@ -54,7 +55,8 @@ import org.springframework.transaction.PlatformTransactionManager;
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass(DSLContext.class)
|
|
|
|
|
@ConditionalOnBean(DataSource.class)
|
|
|
|
|
@AutoConfigureAfter(DataSourceAutoConfiguration.class)
|
|
|
|
|
@AutoConfigureAfter({ DataSourceAutoConfiguration.class,
|
|
|
|
|
TransactionAutoConfiguration.class })
|
|
|
|
|
public class JooqAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|