• 微信回复图文消息


    微信回复图文消息

    一级POJO只能包含一级子元素,如果是多级子元素,就包含多级对象就可以了;

    @XmlRootElement(name="xml")
    @XmlAccessorType(XmlAccessType.FIELD)
    public class ScanUrl {
        private Integer id;
    
        @XmlElement(name="ToUserName")
        private String toUserName;
    
        @XmlElement(name="FromUserName") 
        private String fromUserName;
    
        @XmlElement(name="CreateTime") 
        private Integer createTime;
    
        @XmlElement(name="MsgType") 
        private String msgType;
    
        @XmlElement(name="ArticleCount")
        private Integer articleCount;
        
        @XmlElement(name="Articles", type=ScanUrlItemOuter.class)
        private ScanUrlItemOuter scanUrlItemOuter;
    @XmlRootElement(name="Articles")
    @XmlAccessorType(XmlAccessType.FIELD)
    public class ScanUrlItemOuter {
    
        @XmlElement(name = "item", type = ScanUrlItem.class)
        private List<ScanUrlItem> scanUrlItems;
    @XmlRootElement(name="item")
    @XmlAccessorType(XmlAccessType.FIELD)
    public class ScanUrlItem {
    
        @XmlElement(name="Title")
        private String title;
    
        @XmlElement(name="Description") 
        private String description;
    
        @XmlElement(name="PicUrl") 
        private String picUrl;
    
        @XmlElement(name="Url")
        private String url;

    清爽.

  • 相关阅读:
    12306-单
    12306-票
    12306-车
    12306-人
    12306-目录
    a+=b 是什么意思?
    开启hadoop和Hbase集群的lzo压缩功能(转)
    HBase性能优化方法总结(转)
    Spark向HDFS中存储数据
    Spark从HDFS上读取JSON数据
  • 原文地址:https://www.cnblogs.com/stono/p/6746741.html
Copyright © 2020-2023  润新知