自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

spring中JDBC编程式事务

在spring采用纯JDBC进行数据库操作: applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSch...

2009-12-07 09:45:00 81

spring中JDBC 声明式事务管理

方式一:使用org.springframework.transaction.interceptor.TransactionProxyFactoryBeanapplicationContext.xml<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/sche...

2009-12-07 09:06:00 63

Spring中的JdbcTemplate (2)

1. 简介Spring提供的JDBC抽象框架由core, datasource,object和 support四个不同的包组成。就和它名字的暗示一样,org.springframework.jdbc.core包里定义了提供核心功能的类。其中有各种SQLExceptionTranslator和DataFieldMaxValueIncrementer的实现以及一个用于JdbcTemplate的DAO基...

2009-12-02 22:17:00 55

spring中的JdbcTemplate (1)

对于应用程序而言,每一个域对象,我们都需要设计相应的dao接口,以便能创建、查询、更新和删除域对象,这些操作在dao接口的实现类中对应的便是实际的数据库操作,因此,通过dao接口的这个抽象层,所有的数据库操作对于上层而言是完全不可见的,应用程序上层也不需要关心访问数据库的细节问题。 spring提供了一个强有力的模板类JdbcTemplate来简化jdbc操作,并且DataSource和Jdbc...

2009-12-02 22:13:00 47

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除