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.

README.md 1.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # wx-java-mp-spring-boot-starter
  2. ## 快速开始
  3. 1. 引入依赖
  4. ```xml
  5. <dependency>
  6. <groupId>com.github.binarywang</groupId>
  7. <artifactId>wx-java-mp-spring-boot-starter</artifactId>
  8. <version>${version}</version>
  9. </dependency>
  10. ```
  11. 2. 添加配置(application.properties)
  12. ```properties
  13. # 公众号配置(必填)
  14. wx.mp.appId = appId
  15. wx.mp.secret = @secret
  16. wx.mp.token = @token
  17. wx.mp.aesKey = @aesKey
  18. # 存储配置redis(可选)
  19. wx.mp.config-storage.type = redis # 配置类型: memory(默认), redis, jedis, redistemplate
  20. wx.mp.config-storage.key-prefix = wx # 相关redis前缀配置: wx(默认)
  21. wx.mp.config-storage.redis.host = 127.0.0.1
  22. wx.mp.config-storage.redis.port = 6379
  23. # http客户端配置
  24. wx.mp.config-storage.http-client-type=httpclient # http客户端类型: httpclient(默认), okhttp, joddhttp
  25. wx.mp.config-storage.http-proxy-host=
  26. wx.mp.config-storage.http-proxy-port=
  27. wx.mp.config-storage.http-proxy-username=
  28. wx.mp.config-storage.http-proxy-password=
  29. ```
  30. 3. 自动注入的类型
  31. - `WxMpService`以及~~相关的服务类, 比如: `wxMpService.getXxxService`。~~
  32. - `WxMpConfigStorage`