处理 1 counts of IllegalAnnotationExceptions Class has two properties of the same name "ITEM"

xiaoxiao2025-03-13  6

有空闲时间,弄了下将xml转换成java,java转换成xml,出现一些问题,问题都很快解决了,唯独出现

1 counts of IllegalAnnotationExceptions Class has two properties of the same name "ITEM"这个问题处理的花

了很多时间,分享出来希望可以让大家少走弯路

报错信息:

1 counts of IllegalAnnotationExceptions Class has two properties of the same name "ITEM"

出现的原因是

  是因为 name属性中的名称和 定义的属性名有冲突;

解决方式:

  将属性定义改成和name属性中的不一样即可,例如:将属性名从ITEM 改成 ITEMS 问题解决

转载请注明原文地址: https://www.6miu.com/read-5025753.html

最新回复(0)