<dependency> <groupId>cn.jasonone.ueditor</groupId> <artifactId>ueditor-spring-boot-starter</artifactId> <version>1.1.4</version> </dependency>
ue: root-path: classpath:/static #文件存储根目录(可选配置),默认为[classpath:/static] server-url: /ueditor/jsp/controller #服务器统一请求接口路径(可选配置),默认为[/ueditor/jsp/controller] upload: cn.jasonone.ueditor.upload.LocationFileStorage #文件持久化处理类(可选配置),默认为[cn.jasonone.ueditor.upload.LocationFileStorage]
//... //服务器统一请求接口路径 , serverUrl: URL + "jsp/controller" //...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <script type="text/plain" id="editor"></script> <script th:src="@{/ueditor/ueditor.config.js}"></script> <script th:src="@{/ueditor/ueditor.all.js}"></script> <script th:src="@{/ueditor/lang/zh-cn/zh-cn.js}"></script> <script> UE.getEditor('editor'); </script> </body> </html>
项目地址:https://gitee.com/hmjasonone/ueditor-spring-boot-staterjavascript
错误:Unable to read meta-data for class com.jason.ueditor.UeditorAutoConfiguration 出错版本: 1.1.0 解决办法: 将Jar包更新到1.1.3版本