springboot 集成ueditor
来源:互联网 发布:java以空格分隔字符串 编辑:程序博客网 时间:2024/05/21 11:22
1下载ueditor的jsp版本
- 这里不做介绍,自行下载即可
2将文件放在ser/main/resources/static中
- 将下载好的文件夹放在
3导入ueditor的jar包
- 导入ueditor的jar包,只导入这四个
- 这里要注意的是springboot跟ueditor原本的jar包会有冲突,需要自己修改,大家可直接下载我的jar
- http://pan.baidu.com/s/1sldL7jv
4编写文件上传的控制器
@Controller@Transactional@RequestMapping("/")public class CommonController {@RequestMapping(value = "/ueditor")public void config(HttpServletRequest request, HttpServletResponse response) {response.setContentType("application/json");String rootPath = request.getSession().getServletContext().getRealPath("/");try {String exec = new ActionEnter(request, rootPath).exec();PrintWriter writer = response.getWriter();writer.write(exec);writer.flush();writer.close();} catch (IOException | JSONException e) {e.printStackTrace();}}}
5修改ueditor的配置文件ueditor.config.js
6复制配置文件config,json
默认的路径如下
然后就可以使用ueditor了
没有独立的DEMO,我的开源微商城有用到这个https://gitee.com/jiaH/yjshop
0 1
- springboot 集成ueditor
- springboot集成ueditor
- vue2+ueditor+springboot
- springboot + thymeleaf + mybatis + ueditor
- Yii集成Ueditor
- 项目集成Ueditor编辑器
- Yii2 集成ueditor脚手架
- CI和UEditor集成
- ueditor和springmvc集成
- springboot thymeleaf ueditor 填坑
- extjs3.4集成ueditor将ueditor封装
- ExtJs 集成UEditor and KindEditor
- ExtJs 集成UEditor and KindEditor
- ueditor-1.4.3集成SpringMVC
- ueditor spring mvc 集成配置
- requirejs集成百度编辑器ueditor
- springboot 集成hibernate 集成struts2
- 很详细的SpringBoot整合UEditor教程
- SQL注入剖析
- openlayer 加载天地图为地图,同时加载arcgisserver发布的wms
- 用iframe 进行局部刷新--(子页面,父页面变量和函数互相调用)
- ubuntu安装QQ2015
- 高精度模版
- springboot 集成ueditor
- C++中类的构造函数与复制构造函数
- 第五届上交会完美收官,SLAMTEC获众多关注
- Jmeter Mysql数据库驱动配置
- UEFI原理与编程(六):UEFI工程模块文件-驱动模块工程文件
- 分享一个项目
- 4、SQL安装及配置
- CentOS7安装qemu2.7.0+spice0.12.5过程遇到的问题
- vuejs几种不同组件(页面)间传值的方式