List<HashMap> List = parameterService.queryParas(map);
sb.append("[");
for (HashMap hashMap : List) {
sb.append("{id:\""+(String) hashMap.get("itemCategoryType")+"\""+",text: \""+
(String) hashMap.get("itemCategoryTypeName")+"\"}"+",");
}
if (sb.length()>0) {
sb.deleteCharAt(sb.length() - 1);
}
sb.append("]");
} catch (Exception e) {
e.printStackTrace();
}
return sb.toString();//[{id:"**",text:"**"}]
}
页面中一直报:org.thymeleaf.exceptions.TemplateInputException: Error resolving template "[{id:"A02",text: "进口炼焦煤"},{id:"A01",text: "进口铁矿石"}]", template might not exist or might not be accessible by any of the configured Template Resolvers
这该怎么解决?作者: felt 时间: 2017-6-21 11:42:40