resources下新建File文件 bean.xml

配置jdbcTemplate

注入DataSource

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

编写Insert的方法

 

相关文章: