Map<String, String> prop = new HashMap<String, String>(); prop.put("org.xson.testmodel.XUser7", "x7"); prop.put("org.xson.testmodel.XUser6", "x6"); XsonSupport.addCustomAgreementType(prop);//源代码片段来自云代码http://yuncode.net