Commit 9662a0d6 by guominglei

添加配置

parent 2e83f196
......@@ -87,4 +87,17 @@ public class ResponseResult<T> implements Serializable {
tResponseResult.setCode(code);
return tResponseResult;
}
/**
* 判断是否成功
* @return
*/
public boolean isSuccess(){
//成功
if ("0000000".equals(this.code)){
return true;
}
//失败
return false;
}
}
\ No newline at end of file
......@@ -27,7 +27,8 @@ public class IndexController {
@RequestMapping("/demo")
@ResponseBody
public UserDTO say(String name){
return demoService.hello(name);
System.out.println(name);
return null;
}
@RequestMapping("/demo1")
@ResponseBody
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment