阶段3 2.Spring_09.JdbcTemplate的基本使用_5 JdbcTemplate在spring的ioc中使用


resources下新建File文件 bean.xml





配置jdbcTemplate

注入DataSource

新建测试方法
复制demo1改个名字叫做demo2

编写Insert的方法


 

posted @ 2019-08-16 09:31  高山-景行  阅读(162)  评论(0编辑  收藏  举报