我有一堂课
@XmlRootElement(name="Helloworld")
@XmlType(propOrder = { "userName"})
public class UserDetails {
//User Name
@XmlElement(name="UserName")
private String userName;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
}
我得到运行时异常
There are two properties named "userName" ...
任何人都可以说出上述课程中的错误。