From 9b76b5ac98164f38e57df50d277b03599b66d02e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Thu, 24 Jun 2021 09:39:14 +0800
Subject: [PATCH 1/3] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0=E6=96=87?=
=?UTF-8?q?=E6=A1=A3=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index cd4863db0..3a24d047f 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
[](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/blob/master/LICENSE)
[](https://www.jetbrains.com/?from=RuoYi-Vue-Plus)
-[](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus)
+[](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus)
[]()
[]()
[]()
From 66f453452e3fd0985c581d762d63feccaef08d8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Thu, 24 Jun 2021 15:41:16 +0800
Subject: [PATCH 2/3] =?UTF-8?q?fix=20=E7=9B=B8=E5=AF=B9=E8=B7=AF=E5=BE=84?=
=?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ruoyi/web/controller/common/CommonController.java | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
index 38913f504..d61f99f2c 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -18,6 +18,7 @@ import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import java.io.File;
import java.util.HashMap;
import java.util.Map;
@@ -51,13 +52,13 @@ public class CommonController
}
String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
String filePath = RuoYiConfig.getDownloadPath() + fileName;
-
+ File file = new File(filePath);
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
FileUtils.setAttachmentResponseHeader(response, realFileName);
- FileUtils.writeToStream(filePath, response.getOutputStream());
+ FileUtils.writeToStream(file, response.getOutputStream());
if (delete)
{
- FileUtils.del(filePath);
+ FileUtils.del(file);
}
}
catch (Exception e)
@@ -110,8 +111,9 @@ public class CommonController
// 下载名称
String downloadName = StrUtil.subAfter(downloadPath, "/",true);
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
+ File file = new File(downloadPath);
FileUtils.setAttachmentResponseHeader(response, downloadName);
- FileUtils.writeToStream(downloadPath, response.getOutputStream());
+ FileUtils.writeToStream(file, response.getOutputStream());
}
catch (Exception e)
{
From 5366b5d109d3eb0973ffa8aaa5df6761053564f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E6=9D=B0?= <693337446@qq.com>
Date: Thu, 24 Jun 2021 16:49:04 +0800
Subject: [PATCH 3/3] =?UTF-8?q?update=20=E4=BF=AE=E6=94=B9readme=E5=8A=A0?=
=?UTF-8?q?=E5=85=A5=E6=8F=90=E9=97=AE=E5=9B=9B=E9=83=A8=E6=9B=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3a24d047f..f6aba4003 100644
--- a/README.md
+++ b/README.md
@@ -35,9 +35,25 @@
[初始化项目 必看](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/关于初始化项目?sort_id=4164117)
[参考文档 Wiki](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/pages)
+## 提问四部曲
+### 一、查阅wiki
+优先在`wiki->重点事项`,查找是否有相关问题及解决方案,尤其是框架更新后产生的问题,多会在wiki中提及
+> [参考文档 Wiki](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/pages)
+### 二、借助issues
+尝试issues中搜索问题关键字(记得选择已完成),看看是否有其他人提出相同问题
+- `如果有`那么依据评论中的解决方案自行尝试解决
+- `如果没有`那么提交一个新的issues描述清楚你的问题,需要包含以下内容(优质的issues,能够帮助作则更高效的帮你解决问题):
+ - 出现问题的模块或功能或类,总之你要说清楚在哪出的问题
+ - 描述产生问题的相关操作流程,以便复现快速解决
+ - 报错的日志截图,一定是截图,不要复制一堆报错的文本
+> [issues](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/issues)
+### 三、百度
+大家都懂,不多描述,将关键的报错信息CC->CV到百度中看看大佬们怎么解决的
+> [百度](http://www.baidu.com)
+### 四、加群
+以上三点已经能解决大家绝大部分问题了,如果还有问题没能通过这几种方式解决,那么加群,大家一起在群里探讨一下
## 修改RuoYi功能
-
### 依赖改动
* ORM框架 使用 Mybatis-Plus 简化CRUD (不支持主子表)