name_yc
2017-08-24 11:42
public Result handle (Integer code, Exception e) {
return ResultUtil.error(code, e.getmessage());
}请问我在这个方法里添加了一个参数code,他是怎么调用这个方法传值呢?本人springboot新人,请详解,thanks.
是当你你Contorller中throw的时候
Spring Boot进阶之Web进阶
104242 学习 · 425 问题
相似问题