application.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. tr:
  2. satoken:
  3. enable: true
  4. ignoreUrls: /test/**
  5. server:
  6. shutdown: graceful
  7. port: 8083
  8. #mybatis配置
  9. mybatis-plus:
  10. mapper-locations: classpath*:com/gitee/sunchenbin/mybatis/actable/mapping/*/*.xml,classpath*:mapper/*/*.xml
  11. configuration:
  12. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  13. spring:
  14. datasource:
  15. type: com.alibaba.druid.pool.DruidDataSource
  16. driverClassName: com.mysql.cj.jdbc.Driver
  17. url: jdbc:mysql://192.168.100.32:3306/tdms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true
  18. username: root
  19. password: 123456
  20. redis:
  21. # 地址
  22. host: 192.168.100.32
  23. # 端口,默认为6379
  24. port: 9736
  25. # 数据库索引
  26. database: 8
  27. # 密码
  28. password: 6E6985E1F7CB40F24A\.
  29. # 连接超时时间
  30. timeout: 30s
  31. lettuce:
  32. pool:
  33. # 连接池中的最小空闲连接
  34. min-idle: 16
  35. # 连接池中的最大空闲连接
  36. max-idle: 16
  37. # 连接池的最大数据库连接数
  38. max-active: 16
  39. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  40. max-wait: -1ms
  41. cache:
  42. type: caffeine
  43. profiles:
  44. include: doc
  45. sa-token:
  46. is-read-header: true
  47. # token名称 (同时也是cookie名称)
  48. token-name: Authorization
  49. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 一天
  50. activity-timeout: 86400
  51. # token有效期,单位s 默认30天, -1代表永不过期
  52. timeout: -1
  53. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  54. is-concurrent: true
  55. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  56. is-share: true
  57. # 是否打开续签
  58. auto-renew: true
  59. # 是否输出操作日志
  60. is-log: false
  61. # 同一账号登录数量不做限制
  62. max-login-count: -1