How do I get a strongly typed collection from BlazeDS?

后端 未结 4 1658
感动是毒
感动是毒 2021-02-09 18:45

I\'ve exposed a Spring bean to my Flex app via BlazeDS. In my Java code I return strongly typed lists. e.g.

public List getFolders(String path) {
          


        
4条回答
  •  醉梦人生
    2021-02-09 18:59

    I'm looking at all of my server-side code, and I can't remember if this was necessary or not, but on the Java side, I declare the return values as strongly-typed Lists:

    public List getFolders(String path) { 
        return dao.getFolders(path); 
    }
    

提交回复
热议问题