![](/img/trans.png)
[英]org.hibernate.MappingException: <mapping> element in configuration specifies no known attributes
[英]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.