ApplicationContextapplicationContext=newClassPathXmlApplicationContext("bean.xml"); JdbcTemplatejdbcTemplate= applicationContext.getBean("jdbcTemplate",JdbcTemplate.class); // 保存 jt.update("insert into account(name,money)values(?,?)","eee",3333f); // 更新 jt.update("update account set name=?,money=? where id=?","test",4567,7); // 删除 jt.update("delete from account where id=?",8); // 查询 List<Account> account = jt.query("select * from account where money>?",newBeanPropertyRowMapper<Account>(Account.class),1000f);