为此,我一直在使用SOAP进行测试,使用参数"2013-05“调用该方法。web方法findByYearMonth中的一个断点显示了一个当前日期值,我还可以看到JAXB绑定调用了YearMonth的基本构造函数(这就是我得到2014-02年的原因)。* */
public class YearMonthAdapter extends XmlAdapter<String, YearMonthmarshal(
如果您尝试封送引用没有无参数构造函数的复杂类型的类,例如:@XmlAccessorType(XmlAccessType.FIELD将抛出一个
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptionsjava.sql.Date does not have a no-