请问:如何将FormPath映射到HashMap或者HashTable对象?

View: New views
1 Messages — Rating Filter:   Alert me  

请问:如何将FormPath映射到HashMap或者HashTable对象?

by Zoran-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


@POST
        @Path("/")
        public Response addApple(@FormParam("") Apple apple) throws
Exception;

这是原来的代码

@POST
        @Path("/")
        public Response addApple(@FormParam("") HashTable<String,String>
apple) throws Exception;

返回Null的hashtable对象

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“cxf-zh”论坛。
 要在此论坛发帖,请发电子邮件到 cxf-zh@...
 要退订此论坛,请发邮件至 cxf-zh-unsubscribe@...
 更多选项,请通过 http://groups.google.com/group/cxf-zh?hl=zh-CN 访问该论坛
----
Apache CXF 首页 http://cwiki.apache.org/confluence/display/CXF/Index
-~----------~----~----~----~------~----~------~--~---