resources下新建File文件 bean.xml



配置jdbcTemplate

注入DataSource

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

编写Insert的方法


阶段3 2.Spring_09.JdbcTemplate的基本使用_5 JdbcTemplate在spring的ioc中使用
原文:https://www.cnblogs.com/wangjunwei/p/11361925.html