application-dev.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # 开发环境
  2. spring:
  3. # 数据库配置
  4. datasource:
  5. url: jdbc:mysql://matrix34.tpddns.cn:13306/myframe?useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=utf8
  6. username: root
  7. password: 9a41012499f38251
  8. driver-class-name: com.mysql.cj.jdbc.Driver
  9. # redis
  10. redis:
  11. database: 1
  12. # Redis服务器地址
  13. host: 222.186.144.74
  14. password: Geek@135#
  15. # Redis服务器连接端口
  16. port: 60101
  17. # Redis服务器连接密码(默认为空)
  18. # password:
  19. # 连接超时时间
  20. timeout: 10s
  21. lettuce:
  22. pool:
  23. # 连接池最大连接数
  24. max-active: 200
  25. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  26. max-wait: -1ms
  27. # 连接池中的最大空闲连接
  28. max-idle: 10
  29. # 连接池中的最小空闲连接
  30. min-idle: 0
  31. # 服务器端口
  32. server:
  33. port: 60006
  34. # 日志级别
  35. logging:
  36. config: classpath:logback-spring.xml
  37. level:
  38. root: info
  39. # swagger开关
  40. springfox:
  41. documentation:
  42. auto-startup: true #false关闭swagger文档 true打开swagger
  43. ############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
  44. sa-token:
  45. # token 名称(同时也是 cookie 名称)
  46. token-name: token
  47. # token 有效期(单位:秒) 默认30天,-1 代表永久有效
  48. timeout: 86400
  49. # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  50. active-timeout: -1
  51. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  52. is-concurrent: true
  53. # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  54. is-share: true
  55. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  56. token-style: uuid
  57. # 是否输出操作日志
  58. is-log: true
  59. # frame
  60. frame:
  61. default-password: Root@0511
  62. # 验证码配置
  63. captcha-type: false