|
@@ -153,10 +153,10 @@ public class ImageUploadUtils {
|
|
|
}
|
|
|
}
|
|
|
//生成jpeg图片
|
|
|
- String path = ClassUtils.getDefaultClassLoader().getResource("").getPath();
|
|
|
- logger.info("1--------------" + path);
|
|
|
+// String path = ClassUtils.getDefaultClassLoader().getResource("").getPath();
|
|
|
String file = new Random().nextInt(99999999) + imgStrType;
|
|
|
String filePath = "/mnt/newdatadrive/data/custom/autodeploy/client/releasecode/mai/mai@beta@2020010900000000/tempImage/" + file;
|
|
|
+ logger.info("1--------------filePath:" + filePath);
|
|
|
//新生成的图片
|
|
|
OutputStream out = new FileOutputStream(filePath);
|
|
|
out.write(b);
|