spring注解@ResponseBody返回JSON能不能设置他不返回为null的值java@RequestMapping(value="/{username}",method=RequestMethod.GET,params="json")@ResponseBodypublicUsershow(@PathVariableStringusername){returnusers.get(username);}
java@RequestMapping(value="/{username}",method=RequestMethod.GET,params="json")@ResponseBodypublicUsershow(@PathVariableStringusername){returnusers.get(username);}
@ResponseBodypublicUsershow(@PathVariableStringusername){returnusers.get(username);}
publicUsershow(@PathVariableStringusername){returnusers.get(username);}
returnusers.get(username);}
}
Helenr
慕田峪9158850
相关分类