Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
bc7231a6
Commit
bc7231a6
authored
Aug 09, 2018
by
Junling Bu
Browse files
fix[litemall-core]: 配置七牛云出错
parent
da5beedf
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-core/src/main/java/org/linlinjava/litemall/core/storage/QiniuStorage.java
View file @
bc7231a6
...
...
@@ -58,7 +58,7 @@ public class QiniuStorage implements Storage {
}
/**
*
阿里
云OSS对象存储简单上传实现
*
七牛
云OSS对象存储简单上传实现
*/
@Override
public
void
store
(
InputStream
inputStream
,
long
contentLength
,
String
contentType
,
String
keyName
)
{
...
...
litemall-core/src/main/java/org/linlinjava/litemall/core/storage/config/StorageAutoConfiguration.java
View file @
bc7231a6
...
...
@@ -21,7 +21,6 @@ public class StorageAutoConfiguration {
@Bean
public
StorageService
storageService
()
{
StorageService
storageService
=
new
StorageService
();
Map
<
String
,
Storage
>
supportedStorage
=
new
HashMap
<
String
,
Storage
>(
3
);
String
active
=
this
.
properties
.
getActive
();
storageService
.
setActive
(
active
);
if
(
active
.
equals
(
"local"
)){
...
...
@@ -34,7 +33,7 @@ public class StorageAutoConfiguration {
storageService
.
setStorage
(
tencentStorage
());
}
else
if
(
active
.
equals
(
"qiniu"
)){
storageService
.
setStorage
(
tencent
Storage
());
storageService
.
setStorage
(
qiniu
Storage
());
}
else
{
throw
new
RuntimeException
(
"当前存储模式 "
+
active
+
" 不支持"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment