java problem:The method join(Object[], String) in the type StringUtils is not applicable
错误:Themethodjoin(Object[],String)inthetypeStringUtilsisnotapplicableforthearguments(S...
错误:The method join(Object[], String) in the type StringUtils is not applicable for the arguments (Set, String)
代码片段如下:
Set set = new HashSet();
/* 63 */ set.addAll(code);
/* */
/* 65 */ StringBuilder result = new StringBuilder();
/* 66 */ result.append("{menu:").append(encoder.toString()).append(",");
/* 67 */ result.append("rights:'").append(StringUtils.join(set, ",")).append("',");//就是这里join出问题
/* 68 */ result.append("operator:").append(JsonUtils.toJson(dto)).append("}");
/* 69 */ return result.toString();
不知道怎么解决,求大牛指教!!! 展开
代码片段如下:
Set set = new HashSet();
/* 63 */ set.addAll(code);
/* */
/* 65 */ StringBuilder result = new StringBuilder();
/* 66 */ result.append("{menu:").append(encoder.toString()).append(",");
/* 67 */ result.append("rights:'").append(StringUtils.join(set, ",")).append("',");//就是这里join出问题
/* 68 */ result.append("operator:").append(JsonUtils.toJson(dto)).append("}");
/* 69 */ return result.toString();
不知道怎么解决,求大牛指教!!! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询