配置自定义域名开发环境
- 修改hosts文件配置,添加测试域名映射 - 前端API地址改为 api.yourdomain.com:8080 - 后端服务绑定到 api.yourdomain.com:8080 - 前端开发服务器使用 test.yourdomain.com:5173 - 添加自动配置脚本和启动脚本 - 提供完整的域名配置指南和故障排除说明 - 支持更真实的开发环境模拟
This commit is contained in:
@@ -2,3 +2,7 @@ spring.application.name=demo
|
||||
spring.messages.basename=messages
|
||||
spring.thymeleaf.cache=false
|
||||
spring.profiles.active=dev
|
||||
|
||||
# 服务器配置
|
||||
server.address=api.yourdomain.com
|
||||
server.port=8080
|
||||
|
||||
Reference in New Issue
Block a user