@Configuration @ConditionalOnClass(value={javax.sql.DataSource.class,org.springframework.jdbc.core.JdbcTemplate.class}) @ConditionalOnSingleCandidate(value=javax.sql.DataSource.class) public class JdbcTemplateAutoConfiguration extends Object
Constructor and Description |
---|
JdbcTemplateAutoConfiguration(DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
JdbcTemplate |
jdbcTemplate() |
NamedParameterJdbcTemplate |
namedParameterJdbcTemplate() |
public JdbcTemplateAutoConfiguration(DataSource dataSource)
@Bean @Primary @ConditionalOnMissingBean(value=org.springframework.jdbc.core.JdbcOperations.class) public JdbcTemplate jdbcTemplate()
@Bean @Primary @ConditionalOnMissingBean(value=org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations.class) public NamedParameterJdbcTemplate namedParameterJdbcTemplate()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.