application-dev.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. server:
  2. port: 8086
  3. spring:
  4. servlet:
  5. multipart:
  6. enabled: true
  7. max-file-size: 10MB
  8. max-request-size: 12MB
  9. elasticsearch:
  10. rest:
  11. #使用内置es的配置
  12. uris: http://127.0.0.1:9200
  13. username:
  14. password:
  15. connection-timeout: 10s
  16. redis:
  17. #使用内置redis的配置
  18. host: 127.0.0.1
  19. port: 6379
  20. database: 0
  21. password:
  22. mvc:
  23. pathmatch:
  24. matching-strategy: ant_path_matcher
  25. #图片存储用的是阿里云oss,如果需要上传产品图片才需要配置
  26. aliyun:
  27. bucketId: iotkit-img
  28. endpoint: oss-cn-shenzhen.aliyuncs.com
  29. accessKeyId: 填写阿里云accessKeyId
  30. accessKeySecret: 填写阿里云accessKeySecret
  31. sa-token:
  32. # token名称 (同时也是cookie名称)
  33. token-name: token
  34. # token有效期,单位s 默认30天, -1代表永不过期
  35. timeout: 2592000
  36. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
  37. activity-timeout: -1
  38. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  39. is-concurrent: true
  40. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  41. is-share: false
  42. # token风格
  43. token-style: uuid
  44. # 是否输出操作日志
  45. is-log: false
  46. #认证中心地址
  47. oauth2:
  48. auth-server-url: http://127.0.0.1:8086