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
cd8441e8
Commit
cd8441e8
authored
Jul 30, 2018
by
Junling Bu
Browse files
删除本地存储配置中没有用的port参数
parent
0b164c12
Changes
6
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
cd8441e8
...
...
@@ -77,7 +77,7 @@ litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端

##
#
快速启动
## 快速启动
1.
配置最小开发环境:
*
[
MySQL
](
https://dev.mysql.com/downloads/mysql/
)
...
...
deploy/litemall/application-core.yml
View file @
cd8441e8
...
...
@@ -89,7 +89,6 @@ litemall:
local
:
storagePath
:
storage
address
:
http://122.152.206.172:8080/wx/storage/fetch/
port
:
8081
# 阿里云对象存储配置信息
aliyun
:
endpoint
:
oss-cn-shenzhen.aliyuncs.com
...
...
litemall-core/src/main/java/org/linlinjava/litemall/core/storage/LocalStorage.java
View file @
cd8441e8
...
...
@@ -20,7 +20,6 @@ public class LocalStorage implements Storage {
private
String
storagePath
;
private
String
address
;
private
String
port
;
private
Path
rootLocation
;
...
...
@@ -47,15 +46,6 @@ public class LocalStorage implements Storage {
this
.
address
=
address
;
}
public
String
getPort
()
{
return
port
;
}
public
void
setPort
(
String
port
)
{
this
.
port
=
port
;
}
@Override
public
void
store
(
MultipartFile
file
,
String
keyName
)
{
try
{
...
...
litemall-core/src/main/java/org/linlinjava/litemall/core/storage/config/StorageAutoConfiguration.java
View file @
cd8441e8
...
...
@@ -45,7 +45,6 @@ public class StorageAutoConfiguration {
LocalStorage
localStorage
=
new
LocalStorage
();
StorageProperties
.
Local
local
=
this
.
properties
.
getLocal
();
localStorage
.
setAddress
(
local
.
getAddress
());
localStorage
.
setPort
(
local
.
getPort
());
localStorage
.
setStoragePath
(
local
.
getStoragePath
());
return
localStorage
;
}
...
...
litemall-core/src/main/java/org/linlinjava/litemall/core/storage/config/StorageProperties.java
View file @
cd8441e8
...
...
@@ -43,7 +43,6 @@ public class StorageProperties {
public
static
class
Local
{
private
String
address
;
private
String
port
;
private
String
storagePath
;
public
String
getAddress
()
{
...
...
@@ -54,14 +53,6 @@ public class StorageProperties {
this
.
address
=
address
;
}
public
String
getPort
()
{
return
port
;
}
public
void
setPort
(
String
port
)
{
this
.
port
=
port
;
}
public
String
getStoragePath
()
{
return
storagePath
;
}
...
...
litemall-core/src/main/resources/application-core.yml
View file @
cd8441e8
...
...
@@ -88,8 +88,8 @@ litemall:
# 本地对象存储配置信息
local
:
storagePath
:
storage
address
:
http://localhost:8082/wx/storage/fetch/
por
t
:
808
1
# 这个地方应该是wx模块的WxStorageController的fetch方法对应的地址
address
:
http://localhos
t:808
0/wx/storage/fetch/
# 阿里云对象存储配置信息
aliyun
:
endpoint
:
oss-cn-shenzhen.aliyuncs.com
...
...
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