Spring RESTful client: root tag exception

前端 未结 2 1881
花落未央
花落未央 2021-01-07 13:41

I\'m trying to parse the result from a RESTFull call using RestTemplate following this sample http://thekspace.com/home/component/content/article/57-restful-clients-in-sprin

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-07 14:04

    I solved this problem by using the ArrayList type. So no need to use a fake class to handle the list. It worked for me with something like this (without any annotation used) :

    
        
            
                java.util.ArrayList
                com.kipcast.dataModel.drugs.bean.BrandView
            
        
    
    

提交回复
热议问题