Spring连接MySQL、Oracle和SQL Server的数据库运动连接属性

2014-11-24 09:46:29 · 作者: · 浏览: 0

在配置文件applicationContext.xml设置如下:
< xml version="1.0" encoding="UTF-8" >
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">



mysql.jdbc.Driver">













org.hibernate.dialect.MySQLDialect



true




com/test/bean/User.hbm.xml