发布网友 发布时间:2022-04-15 05:01
共1个回答
热心网友 时间:2022-04-15 06:30
配置:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="mappingResources">
<list>
<value>com/heberandspring/PO/Teacher.hbm.xml</value>
<value>com/heberandspring/PO/Student.hbm.xml</value>
<value>com/heberandspring/PO/Course.hbm.xml</value>
<value>com/heberandspring/PO/Choosecourse.hbm.xml</value>
<value>com/heberandspring/PO/Comment.hbm.xml</value>
<value>com/heberandspring/PO/Jiaoxuerenwu.hbm.xml</value>
<value>com/heberandspring/PO/Schele.hbm.xml</value>
<value>com/heberandspring/PO/Test.hbm.xml</value>
<value>com/heberandspring/PO/Testreport.hbm.xml</value>
<value>com/heberandspring/PO/Testcourse.hbm.xml</value>
<value>com/heberandspring/PO/Showtest.hbm.xml</value>
<value>com/heberandspring/PO/Showtestcourse.hbm.xml</value>
<value>com/heberandspring/PO/Showweitijiao.hbm.xml</value>
<value>com/heberandspring/PO/Showyitijiao.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.hbm2ddl.auto=update
hibernate.show_sql=true
hibernate.format_sql=false
</value>
</property>
</bean>