Commit cd8441e8 authored by Junling Bu's avatar Junling Bu
Browse files

删除本地存储配置中没有用的port参数

parent 0b164c12
......@@ -77,7 +77,7 @@ litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端
![](doc/pic/4.png)
### 快速启动
## 快速启动
1. 配置最小开发环境:
* [MySQL](https://dev.mysql.com/downloads/mysql/)
......
......@@ -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
......
......@@ -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 {
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -88,8 +88,8 @@ litemall:
# 本地对象存储配置信息
local:
storagePath: storage
address: http://localhost:8082/wx/storage/fetch/
port: 8081
# 这个地方应该是wx模块的WxStorageController的fetch方法对应的地址
address: http://localhost:8080/wx/storage/fetch/
# 阿里云对象存储配置信息
aliyun:
endpoint: oss-cn-shenzhen.aliyuncs.com
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment