java中定义Map 报错 源代码是这样的protected Map getKeyMethodMap() {Map map = new HashMap();map.put("login","adminLogin");return map;}提示是:Multiple markers at this line- Map is a raw type.References to generic type Map should be para
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 09:10:01
java中定义Map 报错 源代码是这样的protected Map getKeyMethodMap() {Map map = new HashMap();map.put("login","adminLogin");return map;}提示是:Multiple markers at this line- Map is a raw type.References to generic type Map should be para
java中定义Map 报错
源代码是这样的
protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("login","adminLogin");
return map;
}
提示是:Multiple markers at this line
- Map is a raw type.References to generic type Map should be
parameterized
- implements
org.apache.struts.actions.LookupDispatchAction.getKeyMethodMap
java中定义Map 报错 源代码是这样的protected Map getKeyMethodMap() {Map map = new HashMap();map.put("login","adminLogin");return map;}提示是:Multiple markers at this line- Map is a raw type.References to generic type Map should be para
需要给Map指定参数类型,Map