2024-07-02 08:16:05 +08:00
|
|
|
spring:
|
|
|
|
|
datasource:
|
|
|
|
|
# 配置多数据源
|
|
|
|
|
dynamic:
|
|
|
|
|
primary: master
|
|
|
|
|
strict: false
|
|
|
|
|
datasource:
|
|
|
|
|
# 主库
|
|
|
|
|
master:
|
2024-08-07 23:12:08 +08:00
|
|
|
# 卡特数据库服务器
|
2024-08-29 19:15:03 +08:00
|
|
|
url: jdbc:mysql://10.90.36.71:3306/wms_kate_suzhou?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
|
|
|
|
|
username: developer
|
|
|
|
|
password: developer
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
2024-07-10 16:53:08 +08:00
|
|
|
# 宝开服务器--内网
|
2024-07-30 21:01:28 +08:00
|
|
|
# url: jdbc:mysql://192.168.3.254:3306/wms_kate_suzhou?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
|
|
|
|
|
# username: coder
|
|
|
|
|
# password: coder
|
2024-07-10 16:53:08 +08:00
|
|
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
2024-08-09 15:44:51 +08:00
|
|
|
# # 本地环境
|
2024-08-29 19:15:03 +08:00
|
|
|
# url: jdbc:mysql://localhost:3306/wms_kate_suzhou?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
|
|
|
|
|
# username: developer
|
|
|
|
|
# password: developer
|
|
|
|
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
2024-07-02 08:16:05 +08:00
|
|
|
# 从库
|
2024-08-07 23:12:08 +08:00
|
|
|
# slave_1:
|
|
|
|
|
# url: jdbc:mysql://localhost:3306/wms_aaa?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
|
|
|
|
|
# username: developer
|
|
|
|
|
# password: developer
|
|
|
|
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
2024-07-02 08:16:05 +08:00
|
|
|
profiles:
|
|
|
|
|
active: online
|
2024-08-06 16:21:16 +08:00
|
|
|
servlet:
|
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 100MB #设置允许单个文件上传的大小
|
|
|
|
|
max-request-size: 1000MB #设置允许上传的总的文件的大小
|
|
|
|
|
|
2024-07-02 08:16:05 +08:00
|
|
|
server:
|
|
|
|
|
# 服务端配置
|
|
|
|
|
port: 12315
|
|
|
|
|
servlet:
|
|
|
|
|
# 接口地址
|
|
|
|
|
context-path: /
|
|
|
|
|
encoding:
|
|
|
|
|
charset: utf-8
|
|
|
|
|
enabled: true
|
|
|
|
|
force: true
|
|
|
|
|
|
|
|
|
|
swagger:
|
|
|
|
|
# swagger配置
|
|
|
|
|
enable: true
|
|
|
|
|
title: 菲达宝开WMS
|
|
|
|
|
description: 菲达宝开WMS
|
|
|
|
|
version: 1.0
|
|
|
|
|
base-package: com.wms.controller
|
|
|
|
|
scan-packages: com.wms.controller
|
|
|
|
|
|
|
|
|
|
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:
|
2024-08-07 23:12:08 +08:00
|
|
|
config: classpath:logback.xml
|
|
|
|
|
# file:
|
|
|
|
|
# encoding: UTF-8
|
2024-07-02 08:16:05 +08:00
|
|
|
|
|
|
|
|
#mybatis 分页插件
|
|
|
|
|
#pagehelper:
|
|
|
|
|
# helperDialect: mysql
|
|
|
|
|
# reasonable: true
|
|
|
|
|
# supportMethodsArguments: true
|
|
|
|
|
# params: count=countSql
|
|
|
|
|
|