61 lines
2.0 KiB
YAML
61 lines
2.0 KiB
YAML
|
|
server:
|
|||
|
|
port: 1922
|
|||
|
|
servlet:
|
|||
|
|
context-path: /demo
|
|||
|
|
spring:
|
|||
|
|
jackson:
|
|||
|
|
## 默认序列化时间格式
|
|||
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|||
|
|
## 默认序列化时区
|
|||
|
|
time-zone: GMT+8
|
|||
|
|
datasource:
|
|||
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|||
|
|
url: jdbc:mysql://localhost:3306/demo_0616?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
|||
|
|
username: root
|
|||
|
|
password: 123456
|
|||
|
|
hikari:
|
|||
|
|
maximum-pool-size: 50
|
|||
|
|
idle-timeout: 60000
|
|||
|
|
servlet:
|
|||
|
|
multipart:
|
|||
|
|
max-file-size: 1024MB
|
|||
|
|
max-request-size: 1024MB
|
|||
|
|
|
|||
|
|
#mybatis-plus
|
|||
|
|
mybatis-plus:
|
|||
|
|
mapper-locations: classpath:/mapper/*.xml
|
|||
|
|
configuration:
|
|||
|
|
# 驼峰下划线转换
|
|||
|
|
map-underscore-to-camel-case: true
|
|||
|
|
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
|
|||
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|||
|
|
#mybatis-plus出现两个空行问题,后续版本应该会修正,临时先加这个解决与JSqlParser4.6冲突问题
|
|||
|
|
shrink-whitespaces-in-sql: true
|
|||
|
|
sa-token:
|
|||
|
|
#token 前缀
|
|||
|
|
token-prefix: Bearer
|
|||
|
|
# token名称 (同时也是cookie名称)
|
|||
|
|
token-name: Authorization
|
|||
|
|
# token有效期,单位s 默认30天, -1代表永不过期,2592000为30天
|
|||
|
|
timeout: 2592000
|
|||
|
|
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
|
|||
|
|
active-timeout: -1
|
|||
|
|
# isPrint: false
|
|||
|
|
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
|
|||
|
|
is-concurrent: true
|
|||
|
|
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
|
|||
|
|
is-share: false
|
|||
|
|
# token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
|
|||
|
|
token-style: random-64
|
|||
|
|
# 是否输出操作日志
|
|||
|
|
is-log: true
|
|||
|
|
|
|||
|
|
#配置日志文件指定位置
|
|||
|
|
logging:
|
|||
|
|
config: classpath:logback-spring.xml
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|