mall-admin-ums 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. spring:
  2. datasource:
  3. url: jdbc:mysql://172.16.90.64:3306/carbon-mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
  4. username: root
  5. password: 123456
  6. druid:
  7. initial-size: 5
  8. min-idle: 10
  9. max-active: 20
  10. web-stat-filter:
  11. exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
  12. stat-view-servlet:
  13. login-username: druid
  14. login-password: druid
  15. redis:
  16. host: 172.16.90.64
  17. database: 0
  18. port: 6379
  19. password:
  20. timeout: 300ms
  21. zipkin:
  22. base-url: http://localhost:9411
  23. locator:
  24. discovery:
  25. enabled: true
  26. sleuth:
  27. sampler:
  28. # zipkin 抽样比例 在默认情况下,该值为0.1
  29. probability: 1.0
  30. boot:
  31. admin:
  32. client:
  33. # admin 服务端的地址
  34. url: http://localhost:8095
  35. management:
  36. endpoints:
  37. web:
  38. exposure:
  39. include: '*'
  40. endpoint:
  41. health:
  42. # 展示详情
  43. show-details: always
  44. # 过滤不需要认证路径条件
  45. secure:
  46. ignored:
  47. urls:
  48. - /swagger-ui.html
  49. - /swagger-resources/**
  50. - /swagger/**
  51. - /**/v2/api-docs
  52. - /**/*.js
  53. - /**/*.css
  54. - /**/*.png
  55. - /**/*.ico
  56. - /webjars/springfox-swagger-ui/**
  57. - /actuator/**
  58. - /druid/**
  59. - /admin/login
  60. - /admin/register
  61. - /admin/info
  62. - /admin/logout
  63. - /minio/upload
  64. mybatis:
  65. mapper-locations:
  66. - classpath:dao/*.xml
  67. - classpath*:com/**/mapper/*.xml
  68. jwt:
  69. tokenHeader: Authorization
  70. secret: mall-admin-secret
  71. expiration: 604800
  72. tokenHead: Bearer
  73. redis:
  74. database: mall
  75. key:
  76. admin: 'ums:admin'
  77. token: 'ums:token'
  78. resourceList: 'ums:resourceList'
  79. expire:
  80. common: 86400 # 24小时
  81. logging:
  82. level:
  83. root: info
  84. com.mtcarpenter.mall: info