Ambiguous field mapping detected!


具體報錯:Ambiguous field mapping detected! Both private java.lang.String com.e.ead.entity.BusinessEntity.name and @com.e.ead.common.Meaning(value=公司名稱)private java.lang.String com.e.ead.entity.Bases.name map to the same field name name! Disambiguate using @Field annotation!

 

解決方式:根據提示,找到報的哪個字段有問題(我的是 value=公司名稱,即數據庫中“公司名稱”字段可能是模糊(敏感)字段,映射時無法匹配),把數據庫中的該字段改為不敏感字段。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM