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

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

WBOY
WBOYOriginal
2016-06-07 15:24:301125browse

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

在配置文件applicationContext.xml设置如下:


xmlns="
http://www.springframework.org/schema/beans"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.0.xsd">



















org.hibernate.dialect.MySQLDialect



true




com/test/bean/User.hbm.xml














Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn