Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
master-5.0
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
master-5.0
Commits
e3efd3ba
提交
e3efd3ba
authored
12月 30, 2019
作者:
liupengfei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
文件上传路径根路径公用配置
上级
9fe4b18f
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
24 行增加
和
10 行删除
+24
-10
pom.xml
app/file/pom.xml
+6
-0
ActionEnter.java
...ile/src/main/java/com/zrqx/baidu/ueditor/ActionEnter.java
+2
-0
application.properties
app/file/src/main/resources/application.properties
+1
-2
config.json
...file/src/main/resources/static/ueditor/upload/config.json
+8
-8
ueditor.md
doc/ueditor/ueditor.md
+7
-0
没有找到文件。
app/file/pom.xml
浏览文件 @
e3efd3ba
...
@@ -64,6 +64,12 @@
...
@@ -64,6 +64,12 @@
<artifactId>
dom4j
</artifactId>
<artifactId>
dom4j
</artifactId>
<version>
1.6.1
</version>
<version>
1.6.1
</version>
</dependency>
</dependency>
<!-- MP3, MP4, Ogg Vorbis, FLAC and WMA 处理包 -->
<dependency>
<groupId>
org
</groupId>
<artifactId>
jaudiotagger
</artifactId>
<version>
2.0.3
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
...
...
app/file/src/main/java/com/zrqx/baidu/ueditor/ActionEnter.java
浏览文件 @
e3efd3ba
...
@@ -72,6 +72,8 @@ public class ActionEnter {
...
@@ -72,6 +72,8 @@ public class ActionEnter {
switch
(
actionCode
)
{
switch
(
actionCode
)
{
case
ActionMap
.
CONFIG
:
case
ActionMap
.
CONFIG
:
String
s
=
this
.
configManager
.
getAllConfig
().
toString
();
System
.
out
.
println
(
s
);
return
this
.
configManager
.
getAllConfig
().
toString
();
return
this
.
configManager
.
getAllConfig
().
toString
();
case
ActionMap
.
UPLOAD_IMAGE
:
case
ActionMap
.
UPLOAD_IMAGE
:
...
...
app/file/src/main/resources/application.properties
浏览文件 @
e3efd3ba
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
file-root-path
=
/opt/upload/
file-root-path
=
/opt/upload/
ue-res-server
=
http://122.14.50.6:8296/file/
ftp-root-path
=
/home/lizhuo/
ftp-root-path
=
/home/lizhuo/
ftp-down-path
=
download/
ftp-down-path
=
download/
app/file/src/main/resources/static/ueditor/upload/config.json
浏览文件 @
e3efd3ba
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
"imageCompressEnable"
:
true
,
/*
是否压缩图片
,
默认是
true
*/
"imageCompressEnable"
:
true
,
/*
是否压缩图片
,
默认是
true
*/
"imageCompressBorder"
:
1600
,
/*
图片压缩最长边限制
*/
"imageCompressBorder"
:
1600
,
/*
图片压缩最长边限制
*/
"imageInsertAlign"
:
"none"
,
/*
插入的图片浮动方式
*/
"imageInsertAlign"
:
"none"
,
/*
插入的图片浮动方式
*/
"imageUrlPrefix"
:
"http://192.168.2.242:88/file/"
,
/*
图片访问路径前缀
*/
"imageUrlPrefix"
:
"http://192.168.2.242:88/file/"
,
/*
图片访问路径前缀
文件引用配置在application.properties中ue-res-server属性配置
*/
"imagePathFormat"
:
"ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}_{rand:6}"
,
/*
上传保存路径
,
可以自定义保存路径和文件名格式
*/
"imagePathFormat"
:
"ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}_{rand:6}"
,
/*
上传保存路径
,
可以自定义保存路径和文件名格式
*/
/*
{
filename
}
会替换成原文件名
,
配置这项需要注意中文乱码问题
*/
/*
{
filename
}
会替换成原文件名
,
配置这项需要注意中文乱码问题
*/
/*
{
rand
:
6
}
会替换成随机数
,
后面的数字是随机数的位数
*/
/*
{
rand
:
6
}
会替换成随机数
,
后面的数字是随机数的位数
*/
...
@@ -28,13 +28,13 @@
...
@@ -28,13 +28,13 @@
"
scrawlFieldName
": "
upfile
", /* 提交的图片表单名称 */
"
scrawlFieldName
": "
upfile
", /* 提交的图片表单名称 */
"
scrawlPathFormat
": "
ueditor/jsp/upload/image/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
scrawlPathFormat
": "
ueditor/jsp/upload/image/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
scrawlMaxSize
": 2048000, /* 上传大小限制,单位B */
"
scrawlMaxSize
": 2048000, /* 上传大小限制,单位B */
"
scrawlUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 图片访问路径前缀 */
"
scrawlUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 图片访问路径前缀
文件引用配置在application.properties中ue-res-server属性配置
*/
"
scrawlInsertAlign
": "
none
",
"
scrawlInsertAlign
": "
none
",
/* 截图工具上传 */
/* 截图工具上传 */
"
snapscreenActionName
": "
uploadimage
", /* 执行上传截图的action名称 */
"
snapscreenActionName
": "
uploadimage
", /* 执行上传截图的action名称 */
"
snapscreenPathFormat
": "
ueditor/jsp/upload/image/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
snapscreenPathFormat
": "
ueditor/jsp/upload/image/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
snapscreenUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 图片访问路径前缀 */
"
snapscreenUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 图片访问路径前缀
文件引用配置在application.properties中ue-res-server属性配置
*/
"
snapscreenInsertAlign
": "
none
", /* 插入的图片浮动方式 */
"
snapscreenInsertAlign
": "
none
", /* 插入的图片浮动方式 */
/* 抓取远程图片配置 */
/* 抓取远程图片配置 */
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
"
catcherActionName
": "
catchimage
", /* 执行抓取远程图片的action名称 */
"
catcherActionName
": "
catchimage
", /* 执行抓取远程图片的action名称 */
"
catcherFieldName
": "
source
", /* 提交的图片列表表单名称 */
"
catcherFieldName
": "
source
", /* 提交的图片列表表单名称 */
"
catcherPathFormat
": "
ueditor/jsp/upload/image/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
catcherPathFormat
": "
ueditor/jsp/upload/image/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
catcherUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 图片访问路径前缀 */
"
catcherUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 图片访问路径前缀
文件引用配置在application.properties中ue-res-server属性配置
*/
"
catcherMaxSize
": 2048000, /* 上传大小限制,单位B */
"
catcherMaxSize
": 2048000, /* 上传大小限制,单位B */
"
catcherAllowFiles
": ["
.png
", "
.jpg
", "
.jpeg
", "
.gif
", "
.bmp
"], /* 抓取图片格式显示 */
"
catcherAllowFiles
": ["
.png
", "
.jpg
", "
.jpeg
", "
.gif
", "
.bmp
"], /* 抓取图片格式显示 */
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
"
videoActionName
": "
uploadvideo
", /* 执行上传视频的action名称 */
"
videoActionName
": "
uploadvideo
", /* 执行上传视频的action名称 */
"
videoFieldName
": "
upfile
", /* 提交的视频表单名称 */
"
videoFieldName
": "
upfile
", /* 提交的视频表单名称 */
"
videoPathFormat
": "
ueditor/jsp/upload/video/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
videoPathFormat
": "
ueditor/jsp/upload/video/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
videoUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 视频访问路径前缀 */
"
videoUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 视频访问路径前缀
文件引用配置在application.properties中ue-res-server属性配置
*/
"
videoMaxSize
": 102400000, /* 上传大小限制,单位B,默认100MB */
"
videoMaxSize
": 102400000, /* 上传大小限制,单位B,默认100MB */
"
videoAllowFiles
": [
"
videoAllowFiles
": [
"
.flv
", "
.swf
", "
.mkv
", "
.avi
", "
.rm
", "
.rmvb
", "
.mpeg
", "
.mpg
",
"
.flv
", "
.swf
", "
.mkv
", "
.avi
", "
.rm
", "
.rmvb
", "
.mpeg
", "
.mpg
",
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
"
fileActionName
": "
uploadfile
", /* controller里,执行上传视频的action名称 */
"
fileActionName
": "
uploadfile
", /* controller里,执行上传视频的action名称 */
"
fileFieldName
": "
upfile
", /* 提交的文件表单名称 */
"
fileFieldName
": "
upfile
", /* 提交的文件表单名称 */
"
filePathFormat
": "
ueditor/jsp/upload/file/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
filePathFormat
": "
ueditor/jsp/upload/file/
{
yyyy
}{
mm
}{
dd
}
/
{
time
}{
rand
:
6
}
", /* 上传保存路径,可以自定义保存路径和文件名格式 */
"
fileUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 文件访问路径前缀 */
"
fileUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 文件访问路径前缀
文件引用配置在application.properties中ue-res-server属性配置
*/
"
fileMaxSize
": 51200000, /* 上传大小限制,单位B,默认50MB */
"
fileMaxSize
": 51200000, /* 上传大小限制,单位B,默认50MB */
"
fileAllowFiles
": [
"
fileAllowFiles
": [
"
.png
", "
.jpg
", "
.jpeg
", "
.gif
", "
.bmp
",
"
.png
", "
.jpg
", "
.jpeg
", "
.gif
", "
.bmp
",
...
@@ -74,14 +74,14 @@
...
@@ -74,14 +74,14 @@
"
imageManagerActionName
": "
listimage
", /* 执行图片管理的action名称 */
"
imageManagerActionName
": "
listimage
", /* 执行图片管理的action名称 */
"
imageManagerListPath
": "
ueditor/jsp/upload/image/
", /* 指定要列出图片的目录 */
"
imageManagerListPath
": "
ueditor/jsp/upload/image/
", /* 指定要列出图片的目录 */
"
imageManagerListSize
": 20, /* 每次列出文件数量 */
"
imageManagerListSize
": 20, /* 每次列出文件数量 */
"
imageManagerUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 图片访问路径前缀 */
"
imageManagerUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 图片访问路径前缀
文件引用配置在application.properties中ue-res-server属性配置
*/
"
imageManagerInsertAlign
": "
none
", /* 插入的图片浮动方式 */
"
imageManagerInsertAlign
": "
none
", /* 插入的图片浮动方式 */
"
imageManagerAllowFiles
": ["
.png
", "
.jpg
", "
.jpeg
", "
.gif
", "
.bmp
"], /* 列出的文件类型 */
"
imageManagerAllowFiles
": ["
.png
", "
.jpg
", "
.jpeg
", "
.gif
", "
.bmp
"], /* 列出的文件类型 */
/* 列出指定目录下的文件 */
/* 列出指定目录下的文件 */
"
fileManagerActionName
": "
listfile
", /* 执行文件管理的action名称 */
"
fileManagerActionName
": "
listfile
", /* 执行文件管理的action名称 */
"
fileManagerListPath
": "
ueditor/jsp/upload/file/
", /* 指定要列出文件的目录 */
"
fileManagerListPath
": "
ueditor/jsp/upload/file/
", /* 指定要列出文件的目录 */
"
fileManagerUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 文件访问路径前缀 */
"
fileManagerUrlPrefix
": "
http
:
//
192.168
.
2.242
:
88
/file/
", /* 文件访问路径前缀
文件引用配置在application.properties中ue-res-server属性配置
*/
"
fileManagerListSize
": 20, /* 每次列出文件数量 */
"
fileManagerListSize
": 20, /* 每次列出文件数量 */
"
fileManagerAllowFiles
": [
"
fileManagerAllowFiles
": [
"
.png
", "
.jpg
", "
.jpeg
", "
.gif
", "
.bmp
",
"
.png
", "
.jpg
", "
.jpeg
", "
.gif
", "
.bmp
",
...
...
doc/ueditor/ueditor.md
0 → 100644
浏览文件 @
e3efd3ba
#### ueditor 说明
##### 文件引用路径配置
```
# file/application.properties中 ue-res-server属性管理
ue-res-server=http://122.14.50.6:8296/file/
```
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论