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

    有空闲时间,弄了下将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“_第1张图片

报错信息:

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“_第2张图片

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

解决方式:

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

你可能感兴趣的:(随笔,java,服务器,javascript)