mirror of https://gitee.com/stylefeng/guns
64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
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
|