注:@RequestParam 或@RequestBody等注解是否添加有什么区别 不加:参数可有可无,无参数时为null,但当参数类型是 数字基本类型(int.double)时会报错: 加上@RequestParam 或 @RequestParam(“ 参数名”):必须传参: 添加@RequestParam(value=“ 参数”, required = false):效果同不加注解: 添加@RequestParam(value=“ 参数”, required = false,defult=“…