删除:CmsOrder、CmsProduct系列、CmsComponents等模块
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# 服务器URL配置重构总结
|
||||
|
||||
## 概述
|
||||
将项目中硬编码的服务器地址 `https://server.gxwebsoft.com/api` 改为从配置文件读取,提高了代码的可维护性和灵活性。
|
||||
将项目中硬编码的服务器地址 `https://server.websoft.top/api` 改为从配置文件读取,提高了代码的可维护性和灵活性。
|
||||
|
||||
## 修改的文件
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
**文件路径**: `src/main/java/com/gxwebsoft/common/core/security/JwtAuthenticationFilter.java`
|
||||
|
||||
**修改内容**:
|
||||
- 将硬编码的URL `"https://server.gxwebsoft.com/api/auth/user"`
|
||||
- 将硬编码的URL `"https://server.websoft.top/api/auth/user"`
|
||||
- 改为 `configProperties.getServerUrl() + "/auth/user"`
|
||||
|
||||
### 3. OaAppController.java
|
||||
@@ -39,21 +39,21 @@
|
||||
|
||||
**修改内容**:
|
||||
- 添加了 `ConfigProperties` 依赖注入
|
||||
- 将硬编码的URL `"https://server.gxwebsoft.com/api/file/page"`
|
||||
- 将硬编码的URL `"https://server.websoft.top/api/file/page"`
|
||||
- 改为 `configProperties.getServerUrl() + "/file/page"`
|
||||
|
||||
### 4. SwaggerConfig.java
|
||||
**文件路径**: `src/main/java/com/gxwebsoft/common/core/config/SwaggerConfig.java`
|
||||
|
||||
**修改内容**:
|
||||
- 将硬编码的URL `"https://server.gxwebsoft.com/api/system"`
|
||||
- 将硬编码的URL `"https://server.websoft.top/api/system"`
|
||||
- 改为 `config.getServerUrl() + "/system"`
|
||||
|
||||
### 5. WxOfficialUtil.java
|
||||
**文件路径**: `src/main/java/com/gxwebsoft/common/core/utils/WxOfficialUtil.java`
|
||||
|
||||
**修改内容**:
|
||||
- 将硬编码的URL `"https://server.gxwebsoft.com/api/open/wx-official/accessToken"`
|
||||
- 将硬编码的URL `"https://server.websoft.top/api/open/wx-official/accessToken"`
|
||||
- 改为 `pathConfig.getServerUrl() + "/open/wx-official/accessToken"`
|
||||
|
||||
### 6. ShopOrderServiceImpl.java
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
**修改内容**:
|
||||
- 将微信支付回调地址中的硬编码URL
|
||||
- 从 `"https://server.gxwebsoft.com/api/system/wx-pay/notify/"`
|
||||
- 从 `"https://server.websoft.top/api/system/wx-pay/notify/"`
|
||||
- 改为 `config.getServerUrl() + "/system/wx-pay/notify/"`
|
||||
|
||||
## 配置文件设置
|
||||
@@ -75,13 +75,13 @@ config:
|
||||
### 生产环境 (application-prod.yml)
|
||||
```yaml
|
||||
config:
|
||||
server-url: https://server.gxwebsoft.com/api
|
||||
server-url: https://server.websoft.top/api
|
||||
```
|
||||
|
||||
### 默认配置 (application.yml)
|
||||
```yaml
|
||||
config:
|
||||
server-url: https://server.gxwebsoft.com/api
|
||||
server-url: https://server.websoft.top/api
|
||||
```
|
||||
|
||||
## 优势
|
||||
|
||||
Reference in New Issue
Block a user