报错:Exception in thread "main" org.hibernate.MappingException: entity class not found: com.yunyi.entity.Test
原因:在hibernate.cfg.xml中没有找到对应的实体类,检查hibernate.cfg.xml中的<mapping resource="(路径名)"></mapping>
检查resource中的路径是否正确。
报错:Exception in thread "main" org.hibernate.MappingException: entity class not found: com.yunyi.entity.Test
原因:在hibernate.cfg.xml中没有找到对应的实体类,检查hibernate.cfg.xml中的<mapping resource="(路径名)"></mapping>
检查resource中的路径是否正确。