@RequestMapping(value = "/Fin_AddBankAccount", method = RequestMethod.POST)
public @ResponseBody JsonResponse addCoaCategory(
@RequestParam(value="code", required=true) long code,
@RequestParam(value="startFrom", required=true) long startFrom,
@RequestParam(value="name", required=true, defaultValue="N/A") String name)
{
}
defaultValue="N/A" 不起作用,因为我没有在名称字段中提供任何文本,所以它在数据库中存储 null 而不是“N/A”?