package org.hswebframework.web.datasource.jta;

import org.hsweb.ezorm.rdb.executor.SqlExecutor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;

/**
 * TODO 完成注释
 *
 * @author zhouhao
 */
@ConditionalOnClass(SqlExecutor.class)
public class JtaJdbcSqlExecutorAutoConfiguration {
    @Bean
    public JtaJdbcSqlExecutor jtaJdbcSqlExecutor() {
        return new JtaJdbcSqlExecutor();
    }
}

package org.hswebframework.web.datasource.jta;

import org.hsweb.ezorm.rdb.executor.SqlExecutor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhouhao
 * @see JtaJdbcSqlExecutor
 * @since 3.0
 */
@ConditionalOnClass(SqlExecutor.class)
@Configuration
public class JtaJdbcSqlExecutorAutoConfiguration {
    @Bean
    public JtaJdbcSqlExecutor jtaJdbcSqlExecutor() {
        return new JtaJdbcSqlExecutor();
    }
}

优化jta sqlExecutor 配置