@RequestParam 加与不加的区别
public void getUser(String userName){ }
参数非必需
等同于
public void getUser(@RequestParam(required = false) String userName){ }
public void getUser(String userName){ }
参数非必需
等同于
public void getUser(@RequestParam(required = false) String userName){ }