application.yml 1.3 KB

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