application.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. server:
  2. servlet:
  3. encoding:
  4. charset: UTF-8
  5. force: true
  6. port: 8080
  7. spring:
  8. profiles:
  9. active: dev
  10. jackson:
  11. date-format: yyyy-MM-dd HH:mm:ss
  12. time-zone: GMT+8
  13. # 日志配置
  14. logging:
  15. config: classpath:logback-spring.xml
  16. level:
  17. root: INFO
  18. # 设置 MyBatis 执行 sql 时打印具体的 Sql 语句
  19. com.hahashujia.logback: DEBUG
  20. org.mybatis: DEBUG
  21. path: /nasData/ins/logs
  22. ############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
  23. sa-token:
  24. # token前缀
  25. token-prefix: Bearer
  26. # token 名称(同时也是 cookie 名称)
  27. token-name: Authorization
  28. # token 有效期(单位:秒) 默认30天,-1 代表永久有效
  29. timeout: 86400
  30. # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  31. active-timeout: -1
  32. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  33. is-concurrent: true
  34. # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  35. is-share: true
  36. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  37. token-style: uuid
  38. # 是否输出操作日志
  39. is-log: true