202504-Wms-MengYang/202504-Wms-MengYang-box/wms_serve_mengyang/src/main/resources/application.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2025-07-21 17:05:18 +08:00
spring:
application:
name: wms_main
# 数据库配置
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
# 本地
2025-10-13 10:07:09 +08:00
# url: jdbc:mysql://localhost:3306/wms_mengyang_box?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
# username: root
# password: root
2025-07-21 17:05:18 +08:00
# 服务器
2025-10-13 10:07:09 +08:00
url: jdbc:mysql://localhost:3306/wms_mengyang_box?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
username: user
password: user
2025-07-21 17:05:18 +08:00
profiles:
active: online
servlet:
multipart:
max-file-size: 100MB #设置允许单个文件上传的大小
max-request-size: 1000MB #设置允许上传的总的文件的大小
# 服务配置
server:
port: 12325
2025-07-21 17:05:18 +08:00
servlet:
context-path: /
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml # mapper.xml扫描包
type-aliases-package: com.wms.entity.table # 实体类扫描包
configuration:
map-underscore-to-camel-case: true # 开启驼峰映射
cache-enabled: false # 是否开启二级缓存
global-config:
db-config:
id-type: assign_id
update-strategy: not_null
logging:
config: classpath:logback-spring.xml