Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
83d9afd3
提交
83d9afd3
authored
5月 02, 2020
作者:
cherishsince
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- 增加:qiniu 文件服务
上级
157b1664
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
34 行增加
和
6 行删除
+34
-6
application.yaml
...em/system-application/src/main/resources/application.yaml
+6
-0
pom.xml
system/system-biz/pom.xml
+7
-0
QiniuConfiguration.java
...cn/iocoder/mall/system/biz/config/QiniuConfiguration.java
+21
-0
pom.xml
system/system-rest/pom.xml
+0
-6
没有找到文件。
system/system-application/src/main/resources/application.yaml
浏览文件 @
83d9afd3
...
@@ -5,3 +5,9 @@ spring:
...
@@ -5,3 +5,9 @@ spring:
# Profile 的配置项
# Profile 的配置项
profiles
:
profiles
:
active
:
local
active
:
local
# TODO 小范 TO 芋艿,这个临时加了个
qiniu
:
bucket
:
xx
access-key
:
xx
secret-key
:
xx
system/system-biz/pom.xml
浏览文件 @
83d9afd3
...
@@ -60,6 +60,12 @@
...
@@ -60,6 +60,12 @@
<artifactId>
aliyun-java-sdk-core
</artifactId>
<artifactId>
aliyun-java-sdk-core
</artifactId>
</dependency>
</dependency>
<!-- 文件服务商 -->
<dependency>
<groupId>
com.qiniu
</groupId>
<artifactId>
qiniu-java-sdk
</artifactId>
</dependency>
<!-- 工具类相关 -->
<!-- 工具类相关 -->
<dependency>
<dependency>
<groupId>
org.mapstruct
</groupId>
<groupId>
org.mapstruct
</groupId>
...
@@ -78,6 +84,7 @@
...
@@ -78,6 +84,7 @@
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<artifactId>
fastjson
</artifactId>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
system/system-biz/src/main/java/cn/iocoder/mall/system/biz/config/QiniuConfiguration.java
0 → 100644
浏览文件 @
83d9afd3
package
cn
.
iocoder
.
mall
.
system
.
biz
.
config
;
import
com.qiniu.util.Auth
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
public
class
QiniuConfiguration
{
@Value
(
"${qiniu.access-key}"
)
private
String
accessKey
;
@Value
(
"${qiniu.secret-key}"
)
private
String
secretKey
;
@Bean
public
Auth
auth
()
{
return
Auth
.
create
(
accessKey
,
secretKey
);
}
}
system/system-rest/pom.xml
浏览文件 @
83d9afd3
...
@@ -36,12 +36,6 @@
...
@@ -36,12 +36,6 @@
<artifactId>
mall-spring-boot-starter-swagger
</artifactId>
<artifactId>
mall-spring-boot-starter-swagger
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependency>
<!-- 文件服务商 -->
<dependency>
<groupId>
com.qiniu
</groupId>
<artifactId>
qiniu-java-sdk
</artifactId>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论