@Configuration @ConditionalOnBean(value=javax.sql.DataSource.class) @Conditional(value=BeetlSqlSingleCondition.class) @Import(value=BeetlMapperScannerRegister.class) public class BeetlSqlSingleConfig extends Object
| 构造器和说明 |
|---|
BeetlSqlSingleConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.beetl.sql.ext.spring4.BeetlSqlDataSource |
beetlSqlDataSource(DataSource dataSources) |
org.beetl.sql.ext.spring4.SqlManagerFactoryBean |
getSqlManagerFactoryBean(org.beetl.sql.ext.spring4.BeetlSqlDataSource source,
org.springframework.core.env.Environment env) |
@Bean(name="sqlManagerFactoryBean")
@ConditionalOnMissingBean(value=org.beetl.sql.ext.spring4.SqlManagerFactoryBean.class)
public org.beetl.sql.ext.spring4.SqlManagerFactoryBean getSqlManagerFactoryBean(org.beetl.sql.ext.spring4.BeetlSqlDataSource source,
org.springframework.core.env.Environment env)
throws Exception
Exception@Bean @ConditionalOnMissingBean(value=org.beetl.sql.ext.spring4.BeetlSqlDataSource.class) public org.beetl.sql.ext.spring4.BeetlSqlDataSource beetlSqlDataSource(DataSource dataSources)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.