一、异常
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 8 counts of IllegalAnnotationExceptions
类的两个属性具有相同名称 "orderName"
his problem is related to the following location:
at public java.lang.String com.xl.mall.entity.Order.getOrderName()
at com.xl.mall.entity.Order
this problem is related to the following location:
at private java.lang.String com.xl.mall.entity.Order.orderName
at com.xl.mall.entity.Order
二、方案
实体类中的属性和Getter方法冲突,在class上注解@XmlAccessorType(XmlAccessType.FIELD)即可