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=公司名称,即数据库中“公司名称”字段可能是模糊(敏感)字段,映射时无法匹配),把数据库中的该字段改为不敏感字段。

posted @ 2020-09-17 17:30  叹叹  阅读(3098)  评论(0编辑  收藏  举报