dev --- 3.8.0.A版本, openProject引用 ; formao-live --- 3.7.0.B 版本, formallProject引用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435
  1. # wx-java-miniapp-spring-boot-starter
  2. ## 快速开始
  3. 1. 引入依赖
  4. ```xml
  5. <dependency>
  6. <groupId>com.github.binarywang</groupId>
  7. <artifactId>wx-java-miniapp-spring-boot-starter</artifactId>
  8. <version>${version}</version>
  9. </dependency>
  10. ```
  11. 2. 添加配置(application.properties)
  12. ```properties
  13. # 公众号配置(必填)
  14. wx.miniapp.appid = appId
  15. wx.miniapp.secret = @secret
  16. wx.miniapp.token = @token
  17. wx.miniapp.aesKey = @aesKey
  18. wx.miniapp.msgDataFormat = @msgDataFormat # 消息格式,XML或者JSON.
  19. # 存储配置redis(可选)
  20. # 注意: 指定redis.host值后不会使用容器注入的redis连接(JedisPool)
  21. wx.miniapp.config-storage.type = jedis # 配置类型: memory(默认), jedis, redistemplate
  22. wx.miniapp.config-storage.key-prefix = wa # 相关redis前缀配置: wa(默认)
  23. wx.miniapp.config-storage.redis.host = 127.0.0.1
  24. wx.miniapp.config-storage.redis.port = 6379
  25. # http客户端配置
  26. wx.miniapp.config-storage.http-client-type=httpclient # http客户端类型: httpclient(默认)
  27. wx.miniapp.config-storage.http-proxy-host=
  28. wx.miniapp.config-storage.http-proxy-port=
  29. wx.miniapp.config-storage.http-proxy-username=
  30. wx.miniapp.config-storage.http-proxy-password=
  31. ```
  32. 3. 自动注入的类型
  33. - `WxMaService`
  34. - `WxMaConfig`