怎么样在Spring中利用Hibernate的配置文件生成数据库表?
在Spring的配置文件里加入下列红色行
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle9Dialect
</prop>
<prop key="hibernate.hbm2ddl.auto">create</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
本文地址:http://www.45fan.com/a/question/70555.html