Spring 的 JDBC 操作类
spring-jdbc 包
•core,JdbcTemplate 等相关核⼼心接⼝口和类 比如RowMapper

•datasource,数据源相关的辅助类 内嵌数据源初始化
•object,将基本的 JDBC 操作封装成可复用对象
•support,错误码等其他辅助⼯工具
常⽤用的 Bean 注解通过注解定义 Bean
•@Component
•@Repository
•@Service
•@Controller
•@RestController
Java Config 相关注解
@Configuration
•@ImportResource 注入配置以外的xml配置文件
•@ComponentScan 告诉spring容器可以扫描哪些包下的bean
•@Bean 方法被标注后,返回就是一个bean存在于applicationContext中
•@ConfigurationProperties 配置绑定过来
注⼊入相关注解
•@Autowired(按类型) / @Qualifier(通过名称配合Autowired实现注入) / @Resource
•@Value 注入常量或spel表达式让它找到一些上下文里面配置的东西
JdbcTemplate
•query
•queryForObject
•queryForList
•update 实现插入 修改 删除
•execute 通用方法
SQL 批处理
JdbcTemplate
•batchUpdate
•BatchPreparedStatementSetter
NamedParameterJdbcTemplate
•batchUpdate
•SqlParameterSourceUtils.createBatch
