fourPayProject/posp-api/target/classes/application.yml
2025-03-31 10:14:11 +08:00

86 lines
2.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tomcat
server:
tomcat:
uri-encoding: UTF-8
max-threads: 1000
min-spare-threads: 30
basedir: /tmp/tomcat
port: 80
connection-timeout: 8000ms
servlet:
context-path: /posp-api
spring:
# 环境 dev|test|prod
profiles:
active: jc
# jackson时间格式化
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
enabled: true
mvc:
throw-exception-if-no-handler-found: true
static-path-pattern: /static/**
# resources:
# add-mappings: false
#模板引擎配置
freemarker:
template-loader-path: classpath:/templates/
prefer-file-system-access: false
settings:
template_update_delay: 0
classic_compatible: true
number_format: 0.######
template_exception_handler: ignore
request-context-attribute: request
charset: UTF-8
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
#实体扫描多个package用逗号或者分号隔离
type-aliases-package: io.renren.app.entity,com.antbyte.posp.entity
global-config:
#刷新mapper 调试神器
refresh: true
#是否缓存 Sql 解析
sql-parser-cache: true
db-config:
db-type: mysql
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type: AUTO
#驼峰下划线转换
column-underline: true
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
field-strategy: not_empty
#数据库大写下划线转换
capital-mode: true
#序列接口实现类配置
#key-generator: com.baomidou.springboot.xxx
#逻辑删除配置
# logic-delete-value: 1
# logic-not-delete-value: 0
#自定义填充策略接口实现
#metaObjectHandler: com.rancii.config.SysMetaObjectHandler
#自定义SQL注入器
#sql-injector: com.baomidou.springboot.xxx
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
renren:
# APP模块是通过jwt认证的如果要使用APP模块则需要修改【加密秘钥】
jwt:
# 加密秘钥
secret: e412e5203434eff6b67cvae8ec0f9ebe
# token有效时长7天单位秒
expire: 604800
header: token