@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 |
---|---|
org.springframework.jdbc.core.JdbcTemplate |
jdbcTemplate() |
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate |
namedParameterJdbcTemplate() |
public JdbcTemplateAutoConfiguration(DataSource dataSource)
@Bean @Primary @ConditionalOnMissingBean(value=org.springframework.jdbc.core.JdbcOperations.class) public org.springframework.jdbc.core.JdbcTemplate jdbcTemplate()
@Bean @Primary @ConditionalOnMissingBean(value=org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations.class) public org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedParameterJdbcTemplate()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.