From efdb99f8cecc4afb592afad79c761081d5d5cf22 Mon Sep 17 00:00:00 2001 From: lee <4766465@qq.com> Date: Wed, 18 Dec 2024 13:27:00 +0800 Subject: [PATCH] init --- yami-shop-api/src/main/resources/application.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/yami-shop-api/src/main/resources/application.yml b/yami-shop-api/src/main/resources/application.yml new file mode 100644 index 0000000..178ff0e --- /dev/null +++ b/yami-shop-api/src/main/resources/application.yml @@ -0,0 +1,53 @@ + +spring: + # 环境s dev|prod|docker + profiles: + active: dev + #文件上传设置 + servlet: + multipart: + max-file-size: 100MB + max-request-size: 100MB + enabled: true + jackson: + date-format: yyyy-MM-dd HH:mm:ss + time-zone: GMT+8 +# mybaits-plus配置 +mybatis-plus: + # MyBatis Mapper所对应的XML文件位置 + mapper-locations: classpath*:/mapper/*Mapper.xml + global-config: + # 关闭MP3.0自带的banner + banner: false + db-config: + # 主键类型 0:数据库ID自增 1.未定义 2.用户输入 3 id_worker 4.uuid 5.id_worker字符串表示 + id-type: AUTO + #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断" + insert-strategy: NOT_NULL + update-strategy: NOT_NULL + select-strategy: NOT_NULL + # 默认数据库表下划线命名 + table-underline: true + type-aliases-package: com.yami.shop.bean.model + type-enums-package: com.yami.shop.bean.enums + #type-handlers-package: com.yami.shop.cdn.handler + configuration: + default-enum-type-handler: com.yami.shop.common.handler.EnumTypeHandler + +management: + server: + add-application-context-header: false +server: + tomcat: + basedir: /temp +# 用于雪花算法生成id +application: + datacenterId: ${DATACENTER_ID:1} + workerId: ${WORKER_ID:1} + +mall4j: + order: + thread: + coreSize: 0 + maxSize: 200 + keepAliveTime: 60 -- Gitblit v1.9.3