美文网首页
springboot+thymeleaf+ueditor1.4.

springboot+thymeleaf+ueditor1.4.

作者: 不会取名的木子李 | 来源:发表于2017-12-08 14:53 被阅读0次

整合过程,相当******!

开始:

1.idea自己创建个springboot 项目,要能跑起来的!!!!

2.pom.xml增加

pom

3,下载 ueditor (完整版和jsp版都要下载)

官网 http://ueditor.baidu.com/website/

下载

dowload

完整源码里的 jsp->src里的com包 拷贝到你的项目中

src

再把 jsp版的解压并改名称为 ueditor,复制到 resources/static下

xx

把config.json 移到resources下

编写一个controller,

方法如下

x

找到 ueditor.config.js  的serverUrl改成: serverUrl:" /config"

页面

引入js(据说顺序还要对, 没试过!!!)

x x

运行项目,跳转到这个页面,

有时候 会碰到 单图上传那个东西,单击不管用,那是因为config.json没加载成功

也会遇到多图上传 显示 什么后台没配置 上传无法使用 等等,有啥问题留言吧开会去了。。。

参考,

http://blog.csdn.net/qq_33745799/article/details/70031641

相关文章

网友评论

      本文标题:springboot+thymeleaf+ueditor1.4.

      本文链接:https://www.haomeiwen.com/subject/borovxtx.html