86 lines
2.3 KiB
YAML
86 lines
2.3 KiB
YAML
# 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
|
||
|
||
|