注解@RequestParam

不写@RequestParam,不传参数,参数设为null,程序继续运行。写@RequestParam,请求中必须含有后面的参数,不然报错。

下面为自测: