demo/app/src/main/resources/application.yml

53 lines
1.6 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.

server:
port: 8020
spring:
profiles:
active: dev,upms,recruit
jackson:
time-zone: GMT+8
default-property-inclusion: non_null
cache:
type: redis
redis:
host: ${FXBOOT_REDIS_HOST:127.0.0.1}
port: ${FXBOOT_REDIS_PORT:6379}
database: ${FXBOOT_REDIS_DATABASE:1}
servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB
mvc:
async:
request-timeout: 20000
datasource:
url: jdbc:mysql://${FXBOOT_MYSQL_HOST:58.22.60.29}:${FXBOOT_MYSQL_PORT:3306}/${FXBOOT_MYSQL_TABLE:wangjx_fxboot}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true
username: ${FXBOOT_MYSQL_USER:root}
password: ${FXBOOT_MYSQL_PASSWORD:fxrc123456}
hikari:
idle-timeout: 120000 # 120s 连接会话没使用则关闭
minimum-idle: 0 # 连接池最小连接会话数非serverless数据库建议设置2及以上
maximum-pool-size: 20 # 连接池最大连接会话数
max-lifetime: 300000 # 300s 连接会话最大生命时长,超时而且没被使用则被释放
mybatis-plus:
type-handlers-package: cn.zgfxrc.boot.common.mybatis.handler
mybatis:
tenant:
scan-packages:
- cn.zgfxrc
- com.rsjst
wrap:
status: 500
scan-packages: cn.zgfxrc,com.rsjst
feign:
httpclient:
enabled: false
okhttp:
enabled: true
secret:
# 过期时间
expires-second: 43200
# 缓存前缀
cache-prefix: fx_boot_auth
# 加密密钥
secret: fxboot!!!!fxboot