@RequestParam 加与不加的区别

public void getUser(String userName){

}

参数非必需

等同于

public void getUser(@RequestParam(required = false) String userName){

}

 

posted on 2019-03-28 15:37  蜂巢巧克力面包  阅读(159)  评论(0编辑  收藏  举报