ホームページ  >  記事  >  データベース  >  Spring连接MySQL、Oracle和SQL Server的数据库运动连接属性

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

WBOY
WBOYオリジナル
2016-06-07 15:24:301089ブラウズ

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














声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。