forest-portal 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. spring:
  2. datasource:
  3. url: jdbc:mysql://172.16.90.253:3306/forest-cloud-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. boot:
  16. admin:
  17. client:
  18. # admin 服务端的地址
  19. url: http://localhost:9091
  20. redis:
  21. # Redis服务器地址
  22. host: 172.16.90.64
  23. # Redis数据库索引(默认为0)
  24. database: 0
  25. # Redis服务器连接端口
  26. port: 6379
  27. password: # Redis服务器连接密码(默认为空)
  28. timeout: 300ms # 连接超时时间(毫秒)
  29. rabbitmq:
  30. host: 172.16.90.64
  31. port: 5672
  32. virtual-host: /forest
  33. username: forest
  34. password: 123456
  35. #如果对异步消息需要回调必须设置为true
  36. publisher-confirms: true
  37. # 日志配置
  38. logging:
  39. level:
  40. org.springframework.data.mongodb.core: debug
  41. com.hwrj.cloud.portal.mapper: debug
  42. com.hwrj.cloud.portal.dao: debug
  43. mybatis:
  44. mapper-locations:
  45. - classpath:dao/*.xml
  46. - classpath*:com/**/mapper/*.xml
  47. jwt:
  48. tokenHeader: Authorization #JWT存储的请求头
  49. secret: forest-admin-secret #JWT加解密使用的密钥
  50. expiration: 604800 #JWT的超期限时间(60*60*24*7)
  51. tokenHead: Bearer #JWT负载中拿到开头
  52. secure:
  53. ignored:
  54. urls: #安全路径白名单
  55. - /swagger-ui.html
  56. - /swagger-resources/**
  57. - /swagger/**
  58. - /**/v2/api-docs
  59. - /**/*.js
  60. - /**/*.css
  61. - /**/*.png
  62. - /**/*.ico
  63. - /webjars/springfox-swagger-ui/**
  64. - /druid/**
  65. - /actuator/**
  66. - /sso/**
  67. - /wechat/**
  68. - /home/**
  69. - /product/**
  70. - /brand/**
  71. # 消息队列定义
  72. rabbitmq:
  73. queue:
  74. name:
  75. cancelOrder: cancelOrderQueue
  76. # 自定义redis key
  77. redis:
  78. database: forest
  79. key:
  80. authCode: 'ums:authCode'
  81. telLoginCode: 'ums:authCode'
  82. orderId: 'oms:orderId'
  83. member: 'ums:member'
  84. token: 'ums:token'
  85. expire:
  86. authCode: 90 # 验证码超期时间
  87. authLoginCode: 240 # 验证码超期时间
  88. common: 86400 # 24小时
  89. forest:
  90. wx:
  91. password: forest123456
  92. sms:
  93. accessKeyId: LTAICB9TH0OAN3yJ
  94. accessKeySecret: lCuyL3MUQRLfoVw39W0NqWdVGoLV60
  95. signName: 慧云网安
  96. wx:
  97. mp:
  98. aesKey: 123
  99. appId: wxbe90cc7c5233dd84
  100. secret: ec4a18ce1a7bcf17cf592c3d57cec68a
  101. token: 123
  102. url: http://tanhui.hongweisoft.com/forest-portal/wechat/h5/userInfo
  103. before: http://172.16.90.25:8080