|
@@ -22,7 +22,7 @@ public class BDowdloadController {
|
|
|
@RequestMapping(value = "/download", method = RequestMethod.GET)
|
|
|
public ResponseEntity<byte[]> download(HttpServletRequest request,String resource) throws Exception {
|
|
|
// 下载文件路径
|
|
|
- String filename = Global.getProfile()+resource;
|
|
|
+ String filename = Global.getProfile()+"/"+resource;
|
|
|
File file = new File(filename);
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
// 下载显示的文件名,解决中文名称乱码问�?
|