弹簧引导若依系统整合Ueditor部署时上传图片错误问题

  

前言:国庆假期找了个ruoyi版本的cms玩玩,从git上看,介绍如下图:

  

后台部分截图:

  

春天引导若依系统整合Ueditor部署时上传图片错误问题”>编辑& # 8203;</p>
  <p> <img src=

  

编辑& # 8203;

  

2:在yml文件中,配置ueditor-config.json的文件名:

  

uEditorConfig:
  文件名:ueditor-config.json

  

如下图:

  

春天引导若依系统整合Ueditor部署时上传图片错误问题”>编辑& # 8203;</p>
  <p> 3:编写一个控制器(ps: JSP的凯哥没有使用,修改成了控制器。这样符合习惯)</p>
  <p> 3.1:获取json文件名称</p>
  <p>需要注意:把第二步配置的文件名称,获取到。如下图:</p>
  <p> <img src=/* *   *获取json的   * @paramrequest   * @paramrootPath   * @paramconfigFileName   */publicActionEnter (HttpServletRequestrequest StringrootPath StringconfigFileName) {   this.request=请求;   this.rootPath=rootPath;   this.actionType=request.getParameter(“行动”);   this.contextPath=request.getContextPath ();   this.configManager=ConfigManager.getInstance (this.rootPath、this.contextPath request.getRequestURI (), configFileName);   }      

如下图:

  

春天引导若依系统整合Ueditor部署时上传图片错误问题”>编辑& # 8203;<h2 class=弹簧引导若依系统整合Ueditor部署时上传图片错误问题