jdbcTemplate
文章平均质量分 75
feige5432366
卓越自我,专注于自己的目标,专注于自己的梦想。
展开
-
spring3之JdbcTemplate详解
1、JdbcTemplate操作数据库Spring对数据库的操作在jdbc上面做了深层次的封装,使用spring的注入功能,可以把DataSource注册到JdbcTemplate之中。同时,为了支持对properties文件的支持,spring提供了类似于EL表达式的方式,把dataSource.properties的文件参数引入到参数配置之中,<context:propert...2011-11-27 01:36:15 · 62 阅读 · 0 评论 -
spring3之JdbcTemplate AOP 事务
一、applicationContext.xml配置:定义事务和aop <!-- 定义事务传播属性 --> <tx:advice id="txAdvice" transaction-manager="txManager"> <tx:attributes> <tx:method name="g...2011-11-27 01:36:52 · 105 阅读 · 0 评论 -
spring jdbcTemplate调用存储过程
第一种方式: List<Map<String,Object>> locationInfo=null; locationInfo=(List<Map<String, Object>>) jdbcTemplate.execute("exec PROC_TaoBAO_State ?", new PreparedStatementCallback(){ pu...原创 2011-11-27 21:36:25 · 88 阅读 · 0 评论