guns/src/main/resources/application.yml

64 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

server:
port: 8080
max-http-header-size: 10240
spring:
application:
name: guns
profiles:
active: @spring.active@
mvc:
view:
prefix: /pages
servlet:
multipart:
max-request-size: 8GB
max-file-size: 8GB
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
locale: zh_CN
serialization:
indent_output: false
flyway:
enabled: true
locations: classpath:db/migration/mysql
# 当迁移时发现目标schema非空而且带有没有元数据的表时是否自动执行基准迁移
baseline-on-migrate: true
# 是否允许无序的迁移 开发环境最好开启, 生产环境关闭
out-of-order: true
# 关闭占位符替换因为插入的sql里边可能包含${}关键字
placeholder-replacement: false
# 资源扫描
scanner:
open: true
# 日志记录
sys-log:
# db-数据库file-文件
type: db
file-save-path: _sys_logs
mybatis-plus:
mapper-locations: classpath*:cn/stylefeng/**/mapping/*.xml
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
lazy-loading-enabled: true
multiple-result-sets-enabled: true
global-config:
banner: false
enable-sql-runner: true
db-config:
id-type: assign_id
table-underline: true
# 单点登录开关
sso:
openFlag: false
# 帐号错误检测开关
login:
enable: false