我是春天的新手。我有一个带有多个 GET 参数的 RequestMapping 控制器。他们返回一个 String 。但是一种方法需要返回“/res/”文件夹中的文件。我怎么做?
@RequestMapping(method = RequestMethod.GET,value = "/getfile")
public @ResponseBody
String getReviewedFile(@RequestParam("fileName") String fileName)
{
return //the File Content or better the file itself
}
谢谢