application.yml 1.3 KB

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