# ueditor-spring-boot-example **Repository Path**: hmjasonone/ueditor-spring-boot-example ## Basic Information - **Project Name**: ueditor-spring-boot-example - **Description**: No description available - **Primary Language**: Java - **License**: Artistic-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2018-11-26 - **Last Updated**: 2022-01-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ueditor-spring-boot-stater-example #### springboot零配置整合UEditor #### 文件导入 + 新建springboot项目 + pom文件引入 ```xml?linenums cn.jasonone.ueditor ueditor-spring-boot-starter 1.1.4 ``` ### 项目配置 #### Springboot配置(可选) + JavaConfig ```java?linenums @SpringBootApplication @EnableUeditor //关键注解启用Ueditor //@EnableUeditor(自定义持久化类.class) 使用自定义的持久化类 public class UeditorSpringBootExampleApplication { public static void main(String[] args) { SpringApplication.run(UeditorSpringBootExampleApplication.class, args); } } ``` > + application.yml ```properties?linenums ue: root-path: classpath:/static #文件存储根目录(可选配置),默认为[classpath:/static] server-url: /ueditor/jsp/controller #服务器统一请求接口路径(可选配置),默认为[/ueditor/jsp/controller] ``` #### UEditor配置(必选) + static/ueditor/ueditor.config.js 将serverUrl 改为application.yml 中ue.server-url 的值 ```javascript //... //服务器统一请求接口路径 , serverUrl: URL + "jsp/controller" //... ``` #### 源码 [项目地址](https://gitee.com/hmjasonone/ueditor-spring-boot-stater)