application.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. server:
  2. port: 8080
  3. spring:
  4. application:
  5. name: power-system
  6. profiles:
  7. active: dev
  8. servlet:
  9. multipart:
  10. max-file-size: 10737418240
  11. max-request-size: 10737418240
  12. mybatis-plus:
  13. mapper-locations: classpath:/mapper/**/*.xml
  14. global-config:
  15. db-config:
  16. id-type: auto
  17. configuration:
  18. auto-mapping-behavior: partial
  19. map-underscore-to-camel-case: true
  20. jwt:
  21. tokenHeader: Authorization #JWT存储的请求头
  22. secret: mall-admin-secret #JWT加解密使用的密钥
  23. expiration: 604800 #JWT的超期限时间(60*60*24*7)
  24. tokenHead: 'Bearer ' #JWT负载中拿到开头
  25. redis:
  26. database: power
  27. key:
  28. admin: 'ums:admin'
  29. resourceList: 'ums:resourceList'
  30. provinceList: 'business:provinceList'
  31. lineList: 'business:lineList'
  32. expire:
  33. common: 86400 # 24小时
  34. secure:
  35. ignored:
  36. urls: #安全路径白名单
  37. - /swagger-ui.html
  38. - /swagger-resources/**
  39. - /swagger/**
  40. - /**/v2/api-docs
  41. - /**/*.js
  42. - /**/*.css
  43. - /**/*.png
  44. - /**/*.ico
  45. - /webjars/springfox-swagger-ui/**
  46. - /actuator/**
  47. - /druid/**
  48. - /admin/login
  49. - /admin/register
  50. - /admin/info
  51. - /admin/logout
  52. upload:
  53. temp-path: ./temp/
  54. path: ./upload/ #文件上传路径
  55. power-path: ./power/