jdbcTemplate.setDataSource
时间: 2023-10-24 20:26:53 浏览: 102
jdbcTemplate.setDataSource是一个方法,用于设置JdbcTemplate对象的数据源。根据引用和引用的内容,可以看出在配置数据源后,通过jdbcTemplate.setDataSource(dataSource)方法将数据源设置给JdbcTemplate对象。这样,JdbcTemplate对象就可以使用配置好的数据源来执行数据库操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [【SSM直击大厂】第七章:Spring JdbcTemplate基础详解](https://blog.csdn.net/qq_52360069/article/details/123858444)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [使用spring的JdbcTemplate操作数据库](https://blog.csdn.net/zhangbeizhen18/article/details/85464942)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文