遇到这个错误: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" ......>