遇到这个错误:org.hibernate.MappingException: entity class not found: JPeople
一般系统自动生成的映射文件为:
<hibernate-mapping>
<class name="User" table="......
.......
</hibernate-mapping>
要将class路径改为绝对路径。若User.java在包com.ssh.bean
则要改为<class name="com.ssh.bean.User" ......>
本文详细解释了如何解决Hibernate框架中遇到的MappingException错误,特别是当出现'entityclassnotfound'错误时,需要修改类路径为绝对路径。通过示例代码,文章提供了具体的解决方案和步骤。
1495

被折叠的 条评论
为什么被折叠?



