Browse Source

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

Junling Bu 7 years ago
parent
commit
cd8441e8d0

+ 1 - 1
README.md

@@ -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/)

+ 0 - 1
deploy/litemall/application-core.yml

@@ -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

+ 0 - 10
litemall-core/src/main/java/org/linlinjava/litemall/core/storage/LocalStorage.java

@@ -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 {
         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 {

+ 0 - 1
litemall-core/src/main/java/org/linlinjava/litemall/core/storage/config/StorageAutoConfiguration.java

@@ -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;
     }
     }

+ 0 - 9
litemall-core/src/main/java/org/linlinjava/litemall/core/storage/config/StorageProperties.java

@@ -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 {
             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;
         }
         }

+ 2 - 2
litemall-core/src/main/resources/application-core.yml

@@ -88,8 +88,8 @@ litemall:
     # 本地对象存储配置信息
     # 本地对象存储配置信息
     local:
     local:
       storagePath: storage
       storagePath: storage
-      address: http://localhost:8082/wx/storage/fetch/
-      port: 8081
+      # 这个地方应该是wx模块的WxStorageController的fetch方法对应的地址
+      address: http://localhost:8080/wx/storage/fetch/
     # 阿里云对象存储配置信息
     # 阿里云对象存储配置信息
     aliyun:
     aliyun:
       endpoint: oss-cn-shenzhen.aliyuncs.com
       endpoint: oss-cn-shenzhen.aliyuncs.com