UEditor的源码下载地址:https://github.com/llldddbbb/ueditor-test
建议:不要使用UEditor官网提供的源码,使用上方地址提供的源码
UEditor插件下载地址:https://ueditor.baidu.com/website/download.html
UEditor只提供JSP版本的后端入口代码。但提供了项目源码,因此可以根据业务需求修改源代码。
此处使用了SpringBoot框架,配备了Thymeleaf模板引擎,所以没有必要再添加jsp来兼容UEditor,可通过修改源码满足需要。下面是详细教程。
1.新建SpringBoot项目,添加web和thymeleaf包
这里只提供使用UEditor必须用的依赖,其他依赖根据需求自行引入即可
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20171018</version>