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

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

WBOY
WBOYOriginal
2016-06-07 15:24:301089Durchsuche

在配置文件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














Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn