簡體   English   中英

配置中的映射元素未指定屬性嘗試在Hibernate中運行項目時發生錯誤

[英]Mapping element in configuration specifies no attributes Error occurred when i try to run my project in Hibernate

當我嘗試在Hibernate中運行項目時發生錯誤。錯誤如下。

配置中的映射元素未指定任何屬性

誰能幫助我清除此錯誤

從字面上看,此錯誤似乎通常是由hibernate.cfg.xml文件中的空mapping元素引起的。

要解決此問題,請打開hibernate.cfg.xml文件,並刪除任何為空的mapping元素,即與<mapping />相似的任何元素。

資料來源: http : //www.mohanarun.com/mapping-element-in-configuration-specify-no-attributes-error-in-hibernate/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM