类 JdbcAutoConfig


  • @Configuration
    @AutoConfigureAfter(org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration.class)
    @EnableConfigurationProperties(JdbcProperties.class)
    public class JdbcAutoConfig
    extends Object
    data-jdbc配置,提供自动配置项支持与增强
    从以下版本开始:
    2018年6月11日
    作者:
    ylyue
    • 构造器详细资料

      • JdbcAutoConfig

        public JdbcAutoConfig()
    • 方法详细资料

      • db

        @Bean
        @Primary
        @ConditionalOnBean({org.springframework.jdbc.core.JdbcTemplate.class,org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.class})
        public Db db​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
                     org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedParameterJdbcTemplate)