springboot 自定义响应体大小测试接口
@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;
}