package com.matrix.component.ueditor;
|
|
import lombok.Data;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
@Data
|
@Component
|
@ConfigurationProperties(prefix = "ueditor")
|
public class UeditorProperties {
|
|
/**
|
* 图片访问路径前缀
|
*/
|
private String imageUrlPrefix;
|
/* 上传保存路径,可以自定义保存路径和文件名格式 */
|
/* {filename} 会替换成原文件名,配置这项需要注意中文乱码问题 */
|
/* {rand:6} 会替换成随机数,后面的数字是随机数的位数 */
|
/* {time} 会替换成时间戳 */
|
/* {yyyy} 会替换成四位年份 */
|
/* {yy} 会替换成两位年份 */
|
/* {mm} 会替换成两位月份 */
|
/* {dd} 会替换成两位日期 */
|
/* {hh} 会替换成两位小时 */
|
/* {ii} 会替换成两位分钟 */
|
/* {ss} 会替换成两位秒 */
|
/* 非法字符 \ : * ? " < > | */
|
/* 具请体看线上文档: fex.baidu.com/ueditor/#use-format_upload_filename */
|
private String imagePathFormat;
|
|
|
|
|
/* 涂鸦图片上传配置项 */
|
private String scrawlPathFormat;
|
private String scrawlUrlPrefix;
|
|
/* 截图工具上传 */
|
private String snapscreenPathFormat;
|
private String snapscreenUrlPrefix;
|
|
/* 抓取远程图片配置 */
|
private String catcherPathFormat;
|
private String catcherUrlPrefix;
|
|
/* 上传视频配置 */
|
private String videoPathFormat;
|
private String videoUrlPrefix;
|
|
/* 上传文件配置 */
|
private String filePathFormat;
|
private String fileUrlPrefix;
|
|
/* 列出指定目录下的图片 */
|
private String imageManagerListPath;
|
/* 列出指定目录下的文件 */
|
private String fileManagerListPath;
|
|
|
|
|
|
|
}
|