类 JdbcAutoConfig


  • @Configuration
    @AutoConfigureAfter(org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration.class)
    public class JdbcAutoConfig
    extends java.lang.Object
    版本:
    创建时间:2018年6月11日
    作者:
    孙金川
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      DB db​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedParameterJdbcTemplate)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • 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)