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

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

parent 0b164c12
...@@ -77,7 +77,7 @@ litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端 ...@@ -77,7 +77,7 @@ litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端
![](doc/pic/4.png) ![](doc/pic/4.png)
### 快速启动 ## 快速启动
1. 配置最小开发环境: 1. 配置最小开发环境:
* [MySQL](https://dev.mysql.com/downloads/mysql/) * [MySQL](https://dev.mysql.com/downloads/mysql/)
......
...@@ -89,7 +89,6 @@ litemall: ...@@ -89,7 +89,6 @@ litemall:
local: local:
storagePath: storage storagePath: storage
address: http://122.152.206.172:8080/wx/storage/fetch/ address: http://122.152.206.172:8080/wx/storage/fetch/
port: 8081
# 阿里云对象存储配置信息 # 阿里云对象存储配置信息
aliyun: aliyun:
endpoint: oss-cn-shenzhen.aliyuncs.com endpoint: oss-cn-shenzhen.aliyuncs.com
......
...@@ -20,7 +20,6 @@ public class LocalStorage implements Storage { ...@@ -20,7 +20,6 @@ public class LocalStorage implements Storage {
private String storagePath; private String storagePath;
private String address; private String address;
private String port;
private Path rootLocation; private Path rootLocation;
...@@ -47,15 +46,6 @@ public class LocalStorage implements Storage { ...@@ -47,15 +46,6 @@ public class LocalStorage implements Storage {
this.address = address; this.address = address;
} }
public String getPort() {
return port;
}
public void setPort(String port) {
this.port = port;
}
@Override @Override
public void store(MultipartFile file, String keyName) { public void store(MultipartFile file, String keyName) {
try { try {
......
...@@ -45,7 +45,6 @@ public class StorageAutoConfiguration { ...@@ -45,7 +45,6 @@ public class StorageAutoConfiguration {
LocalStorage localStorage = new LocalStorage(); LocalStorage localStorage = new LocalStorage();
StorageProperties.Local local = this.properties.getLocal(); StorageProperties.Local local = this.properties.getLocal();
localStorage.setAddress(local.getAddress()); localStorage.setAddress(local.getAddress());
localStorage.setPort(local.getPort());
localStorage.setStoragePath(local.getStoragePath()); localStorage.setStoragePath(local.getStoragePath());
return localStorage; return localStorage;
} }
......
...@@ -43,7 +43,6 @@ public class StorageProperties { ...@@ -43,7 +43,6 @@ public class StorageProperties {
public static class Local { public static class Local {
private String address; private String address;
private String port;
private String storagePath; private String storagePath;
public String getAddress() { public String getAddress() {
...@@ -54,14 +53,6 @@ public class StorageProperties { ...@@ -54,14 +53,6 @@ public class StorageProperties {
this.address = address; this.address = address;
} }
public String getPort() {
return port;
}
public void setPort(String port) {
this.port = port;
}
public String getStoragePath() { public String getStoragePath() {
return storagePath; return storagePath;
} }
......
...@@ -88,8 +88,8 @@ litemall: ...@@ -88,8 +88,8 @@ litemall:
# 本地对象存储配置信息 # 本地对象存储配置信息
local: local:
storagePath: storage storagePath: storage
address: http://localhost:8082/wx/storage/fetch/ # 这个地方应该是wx模块的WxStorageController的fetch方法对应的地址
port: 8081 address: http://localhost:8080/wx/storage/fetch/
# 阿里云对象存储配置信息 # 阿里云对象存储配置信息
aliyun: aliyun:
endpoint: oss-cn-shenzhen.aliyuncs.com 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