为什么不写 @RequestParam 也能拿到参数?

三种写法,test(String name), 
test(@RequestParam String name), 
test(@RequestParam("userName") String name), 
第一种如果没有name 参数不会报错, 
第二种没有name 参数会报错,(也可以设置required = false), 
第三种跟第二种的区别是name 参数换为userName。

原文地址:https://www.cnblogs.com/cztisthebest/p/7001541.html