映射请求参数&请求参数

如果方法为如下的形式: 即age的类型为@RequestParam(value="age", required=false) int age,那么如果我们采用如下的形式来访问: http://localhost:8080/Spring4/springmvc/testRequestParam?username=atguigu 即无法把null值转换为int类型的数据; 可以修改为@RequestPa
相关文章
相关标签/搜索