if I have a a request mapping similar to the following:
@RequestMapping(value = \"/test\", method = RequestMethod.POST) @ResponseBody public void test(@Reque
You can keep primitive type by setting default value, in the your case just add "required = false" property:
@RequestParam(value = "i", required = false, defaultValue = "10") int i
P.S. This page from Spring documentation might be useful: Annotation Type RequestParam