在 Spring 3 控制器中
@RequestMapping(value = "/employee/{id}", RequestMethod.GET)
public @ResponseBody Employee getEmployee(@PathVariable long empID) {
Employee employee = employeeService.getByID(empID);
return employee;
}
我应该修改哪个文件,以便 json 返回如下
而不是返回"['foo', 'bar']"
返回这个 "/*['foo', 'bar']*/"
(带评论)?