症状: Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized 解决: HashMap<Object,Object> cachedDs=new HashMap<Object,Object> (); cachedDs.put("ds", ds);