使用Hibernate和MySQL当多个错误

问题描述 投票:0回答:1

我在我的项目中使用Hibernate的问题,并不能找到错误。

错误:Errors Screenshot from Eclipse

hibernate.cfg.xml的Hibernate Configuration File

java mysql hibernate
1个回答
1
投票

你缺少“映射”标签的结束标记。

你要么使用

<mapping resource="Patient.hbm.xml"/>

要么

<mapping resource="Patient.hbm.xml">
</mapping>

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.