Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
U
UEditor-OSS
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
毛洋
UEditor-OSS
Commits
e87be5cf
提交
e87be5cf
authored
8月 22, 2020
作者:
javamaoyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
4fb82308
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
65 行增加
和
25 行删除
+65
-25
pom.xml
pom.xml
+10
-0
UeditorTestApplication.java
src/main/java/com/example/UeditorTestApplication.java
+31
-12
application.properties
src/main/resources/application.properties
+24
-13
没有找到文件。
pom.xml
浏览文件 @
e87be5cf
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
<thymeleaf-layout-dialect.version>
2.1.0
</thymeleaf-layout-dialect.version>
<thymeleaf-layout-dialect.version>
2.1.0
</thymeleaf-layout-dialect.version>
<org.projectlombok.version>
1.16.10
</org.projectlombok.version>
<org.projectlombok.version>
1.16.10
</org.projectlombok.version>
<httpcomponents-version>
4.4
</httpcomponents-version>
<httpcomponents-version>
4.4
</httpcomponents-version>
<hotKey.version>
0.0.2-SNAPSHOT
</hotKey.version>
</properties>
</properties>
<dependencies>
<dependencies>
...
@@ -91,6 +92,15 @@
...
@@ -91,6 +92,15 @@
<artifactId>
aliyun-sdk-oss
</artifactId>
<artifactId>
aliyun-sdk-oss
</artifactId>
<version>
2.2.1
</version>
<version>
2.2.1
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<version>
28.2-jre
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
src/main/java/com/example/UeditorTestApplication.java
浏览文件 @
e87be5cf
package
com
.
example
;
package
com
.
example
;
import
javax.annotation.PostConstruct
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
com.jd.platform.hotkey.client.ClientStarter
;
@SpringBootApplication
@SpringBootApplication
public
class
UeditorTestApplication
{
public
class
UeditorTestApplication
{
@Value
(
"${etcd.server}"
)
private
String
etcd
;
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
UeditorTestApplication
.
class
,
args
);
SpringApplication
.
run
(
UeditorTestApplication
.
class
,
args
);
}
}
@PostConstruct
public
void
init
()
{
ClientStarter
.
Builder
builder
=
new
ClientStarter
.
Builder
();
ClientStarter
starter
=
builder
.
setAppName
(
"appTest"
).
setEtcdServer
(
etcd
).
build
();
starter
.
startPipeline
();
}
}
}
src/main/resources/application.properties
浏览文件 @
e87be5cf
...
@@ -3,11 +3,22 @@ server.port=5555
...
@@ -3,11 +3,22 @@ server.port=5555
spring.mvc.static-path-pattern
=
/**
spring.mvc.static-path-pattern
=
/**
spring.resources.static-locations
=
classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
spring.resources.static-locations
=
classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
imageUrl
=
https://imgb.mofangx.com/
#imageUrl=https://imgb.mofangx.com/
oss.host
=
https://imgb.mofangx.com
#oss.host=https://imgb.mofangx.com
oss.keyId
=
LTAIki0hQzKhpIqj
#oss.keyId=LTAIki0hQzKhpIqj
oss.keySecret
=
Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
#oss.keySecret=Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
oss.bucketName
=
mofang-pro
#oss.bucketName=mofang-pro
oss.folder
=
erp/
#oss.folder=erp/
imageUrl
=
https://imgb.woyoubooking.com/
oss.host
=
https://imgb.woyoubooking.com
oss.keyId
=
LTAISxaXkVGKq7Ec
oss.keySecret
=
CokBrGxVPQc9v0I9TXdbqqUfHX8YYJ
oss.bucketName
=
woyou-pro
oss.folder
=
woyou/
#
etcd.server
=
http://etcd.mofang.cn:2379
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论