application.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. server:
  2. # 端口
  3. port: 8080
  4. ############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
  5. sa-token:
  6. # token 名称(同时也是 cookie 名称)
  7. token-name: Authorization
  8. # token 有效期(单位:秒) 默认30天,-1 代表永久有效
  9. timeout: 2592000
  10. # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  11. active-timeout: -1
  12. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  13. is-concurrent: true
  14. # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  15. is-share: true
  16. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  17. token-style: uuid
  18. # 是否输出操作日志
  19. is-log: true
  20. alone-redis:
  21. # Redis数据库索引
  22. database: 1
  23. # Redis服务器地址
  24. host: 101.133.232.246
  25. # Redis服务器连接端口
  26. port: 6379
  27. # Redis服务器连接密码(默认为空)
  28. password: NJU67redis
  29. # 连接超时时间
  30. timeout: 10s
  31. lettuce:
  32. pool:
  33. # 连接池最大连接数
  34. max-active: 20
  35. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  36. max-wait: -1ms
  37. # 连接池中的最大空闲连接
  38. max-idle: 10
  39. # 连接池中的最小空闲连接
  40. min-idle: 1
  41. cluster:
  42. refresh:
  43. adaptive: true
  44. period: 20
  45. spring:
  46. datasource:
  47. url: jdbc:mysql://106.14.123.58:3306/micro?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false
  48. username: root
  49. password: NJU67seecoder
  50. driverClassName: com.mysql.cj.jdbc.Driver
  51. jpa:
  52. hibernate:
  53. ddl-auto: update
  54. naming:
  55. implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
  56. physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  57. database-platform: org.hibernate.dialect.MySQL57InnoDBDialect
  58. # show-sql: true
  59. properties:
  60. hibernate.enable_lazy_load_no_trans: true
  61. # hibernate.format_sql: true
  62. open-in-view: true