|
@@ -2,6 +2,7 @@ package com.caimei.utils;
|
|
|
|
|
|
import com.caimei.modules.fastDFS.FastDFSClient;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
@@ -17,6 +18,8 @@ import java.util.*;
|
|
|
public class formDataUtils {
|
|
|
@Autowired
|
|
|
private FastDFSClient client;
|
|
|
+ @Value("${malladmin.imageDomain}")
|
|
|
+ private String imageDomain;
|
|
|
|
|
|
@ResponseBody
|
|
|
@RequestMapping("/MultiPictareaddData")
|
|
@@ -30,6 +33,7 @@ public class formDataUtils {
|
|
|
MultipartFile filex = file[i];
|
|
|
// 保存文件
|
|
|
saveFile = saveFile(request, filex);
|
|
|
+ saveFile = imageDomain + "/" + saveFile;
|
|
|
}
|
|
|
map.put("success", saveFile);
|
|
|
map.put("msg", "上传成功");
|