@ResponseBody
@RequestMapping("/def/response/body/service")
public StringBuilder defResponseBodyService(@RequestParam(name="count") Integer count,HttpServletRequest HttpRequest) throws InterruptedException{
String baseStr = "010101010101010101010101010101"; //32字符长度
StringBuilder sb = new StringBuilder();
for(i=1;i<=count;i++){
for(y=1;y<=32;y++){
sb.append(baseStr);
}
}
LOG.info("长度是"+sb.length());
return sb;
}
标签:count,springboot,自定义,StringBuilder,接口,baseStr,sb From: https://www.cnblogs.com/yinzone/p/17863147.html