|
@@ -1,27 +1,10 @@
|
|
|
-# 项目相关配置
|
|
|
-project:
|
|
|
- # 名称
|
|
|
- name: liebao
|
|
|
- # 版本
|
|
|
- version: 1.0
|
|
|
- # 版权年份
|
|
|
- copyrightYear: 2021
|
|
|
- # 实例演示开关
|
|
|
- demoEnabled: true
|
|
|
- # 文件路径,使用jvm系统变量,兼容windows和linux
|
|
|
- profile: ${user.dir}/upload/uploadPath
|
|
|
- # 获取ip地址开关
|
|
|
- addressEnabled: false
|
|
|
- # 验证码类型 math 数组计算 char 字符验证
|
|
|
- captchaType: math
|
|
|
-
|
|
|
# 开发环境配置
|
|
|
server:
|
|
|
# 服务器的HTTP端口,默认为8080
|
|
|
port: 8085
|
|
|
servlet:
|
|
|
# 应用的访问路径
|
|
|
- context-path: /delivery
|
|
|
+ context-path: /waimai
|
|
|
# undertow 配置
|
|
|
undertow:
|
|
|
# HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
|
|
@@ -52,21 +35,20 @@ logging:
|
|
|
|
|
|
# Spring配置
|
|
|
spring:
|
|
|
- # 资源信息
|
|
|
- messages:
|
|
|
- # 国际化资源文件路径
|
|
|
- basename: i18n/messages
|
|
|
profiles:
|
|
|
active: @profiles.active@
|
|
|
- # 文件上传
|
|
|
- servlet:
|
|
|
- multipart:
|
|
|
- # 单个文件大小
|
|
|
- max-file-size: 50MB
|
|
|
- # 设置总上传的文件大小
|
|
|
- max-request-size: 100MB
|
|
|
- # 服务模块
|
|
|
- devtools:
|
|
|
- restart:
|
|
|
- # 热部署开关
|
|
|
- enabled: true
|
|
|
+ # 微服务-服务注册
|
|
|
+ application:
|
|
|
+ name: lb-waimai
|
|
|
+ cloud:
|
|
|
+ nacos:
|
|
|
+ discovery:
|
|
|
+ # 服务注册地址
|
|
|
+ server-addr: 153.37.175.42:8848
|
|
|
+ config:
|
|
|
+ # 配置中心地址
|
|
|
+ server-addr: 153.37.175.42:8848
|
|
|
+ file-extension: yml # 配置文件格式
|
|
|
+ # 共享配置
|
|
|
+ shared-configs:
|
|
|
+ - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|