blade create jvm return
介绍
参数
--effect-count string 影响的请求条数
--effect-percent string 影响的请求百分比
--value string 返回指定值,仅支持基本类型和字符串类型,如果想返回 null,可以设置为 --value null 。必选项案例
@RequestMapping(value = "hello")
@ResponseBody
public String hello(String name, int code) {
if (name == null) {
name = "friend";
}
StringBuilder result = null;
try {
result = new StringBuilder(sayHello(name));
} catch (Exception e) {
return e.getMessage() + "\n";
}
return result.toString() + "\n";
}常见问题
Last updated
Was this helpful?


