Java 不支持Hashmap
我试图生成Hashmap类型的Web服务,但出现以下错误:Java 不支持Hashmap,java,web-services,tomcat,hashmap,Java,Web Services,Tomcat,Hashmap,我试图生成Hashmap类型的Web服务,但出现以下错误: hashmap that is not supported by the jax-rpc 我的代码: public String insertTest(HashMap<Integer, Integer> checkBoxState){ for (Map.Entry<Integer, Integer> mapEntry : checkBoxState .entrySet()) { int
hashmap that is not supported by the jax-rpc
我的代码:
public String insertTest(HashMap<Integer, Integer> checkBoxState){
for (Map.Entry<Integer, Integer> mapEntry : checkBoxState
.entrySet()) {
int SID = mapEntry.getKey();
int status = mapEntry.getValue();
System.out.println("student it " + SID + "status"+status);
}
return null;
}
我正在使用Tomcat7
因此,我想要一种简单的方法来让它工作建议使用JAXWS,因为JAXRPC已经过时请参见:如何从JAXRPC更改为JAXWS,因为我被搜索到,我不知道您使用的是什么ide?使用一些ide可以轻松设置jax wseclipse juno和javaee6,我确信已经安装了wtf