读书人

applicationContext.xml配备hibernate

发布时间: 2012-10-12 10:17:04 作者: rapoo

applicationContext.xml配置hibernate的连接MYDQL数据库


??? <!-- hibernate方言等相关配置 -->
??? <property name="hibernateProperties">
??????? <props>
??????????? <prop key="connection.useUnicode">true</prop>
??????????? <prop key="connection.characterEncoding">utf-8</prop>
??????????? <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
??????????? <prop key="hibernate.show_sql">true</prop>
??????? </props>
??? </property>
??? <!-- hbm.xml的映射文件 -->
??? <property name="mappingResources">
??????? <list>
??????????? <value>test/s2sh/bean/Person.hbm.xml</value>
??????? </list>
??? </property>
</bean>

读书人网 >其他数据库

热点推荐