//取得exportBackUP方法的返回值
String backUpString = this.sjkbfService.exportBackUp(tableNames); System.out.println("backUpString===="+backUpString);

String fileDate = new SimpleDateFormat("yyyyMMddHHmmss")
.format(new Date());
// 取得输出流
OutputStream out = response.getOutputStream();

String fileName = fileDate + ".backUp";

response.addHeader("Content-Disposition", "attachment;filename="
+ fileName);// filename指定默认的名字

BufferedOutputStream bos = new BufferedOutputStream(out);
try {

bos.write(backUpString.getBytes("UTF-8"));
System.out.println("写入成功");

} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
bos.close();
out.close();
response.flushBuffer();// 强行将响应缓存中的内容发送到目的地 return null;上面代码有什么问题??
System.out.println("写入成功");也打印出来了,下载的文件在哪里??