HaishenDB的配备

HaishenDB的配置HaishenDB目前只有基于spring jdbc的实现,配置完全采用spring jdbc的方式.?spring的配置文

HaishenDB的配置

HaishenDB目前只有基于spring jdbc的实现,配置完全采用spring jdbc的方式.

?

spring的配置文件 applicationContext.xml

?

jdbc.driverClassName=org.postgresql.Driverjdbc.url=jdbc:postgresql://localhost:5432/Testjdbc.username=postgresjdbc.password=test

?

说明,com.haishen.db.api.impl.IDAOSpringJdbcImpl是基于spring jdbc的实现类.com.haishen.db.util.PostgresSQLBuilder是HaishenDB生成符合postgres数据库要求的sql语句工具类.如果是别的数据库,可以使用相应的工具类.目前HaishenDB提供postgres,oracle,sql server这三个数据库的工具类。