[quote]org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity[/quote]
[color=green][b]原因:没有配置实体映射entity:[/b][/color]
[color=green][b]原因:没有配置实体映射entity:[/b][/color]
<!--SessionFactory Definition-->
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource"><ref local="dataSource" /></property>
<property name="lobHandler" ref="lobHandler" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
<property name="mappingDirectoryLocations">
<list>
<value>classpath*:com/momo/example/entity</value>
<value>classpath*:com/momo/tools/document/entity</value>
</list>
</property>
</bean>