
java class 转 xml
目标接口接收 xml 封装的数据请求
我们调用方构造 class ,填充数据之后 post 到对方接口
<ACCTTO INTERBANK="Y/N" LOCAL="Y/N"> test </ACCTTO>对于其中的这种 xml 节点,不知道该怎么处理.转换使用的都是 javax.xml 包下的方法和注解
@XmlElement(name = "ACCTTO") pivate String acctTO; 这样声明只能达到这样的效果,如何设置标签的 INTERBANK, LOCAL 属性呢? <ACCTTO> test </ACCTTO>
1 F7TsdQL45E0jmoiG 2023-11-29 14:30:49 +08:00 @XmlAttribute(name = "INTERBANK") |