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.
Binary Wang 9472dd3d4f 🔖 发布 3.7.8.B 测试版本 4 years ago
..
src/main 🎨 #1521 微信小程序 spring-boot-starter 增加一些新特性 4 years ago
README.md 🎨 #1522 开放平台优化redis存储配置类,同时对应的 spring boot starter 模块增加新特性 4 years ago
pom.xml 🔖 发布 3.7.8.B 测试版本 4 years ago

README.md

wx-java-mp-spring-boot-starter

快速开始

  1. 引入依赖
    <dependency>
        <groupId>com.github.binarywang</groupId>
        <artifactId>wx-java-mp-spring-boot-starter</artifactId>
        <version>${version}</version>
    </dependency>
    
  2. 添加配置(application.properties)
    # 公众号配置(必填)
    wx.mp.appId = appId
    wx.mp.secret = @secret
    wx.mp.token = @token
    wx.mp.aesKey = @aesKey
    # 存储配置redis(可选)
    wx.mp.config-storage.type = redis                     # 配置类型: memory(默认), redis, jedis, redistemplate
    wx.mp.config-storage.key-prefix = wx                  # 相关redis前缀配置: wx(默认)
    wx.mp.config-storage.redis.host = 127.0.0.1
    wx.mp.config-storage.redis.port = 6379
    # http客户端配置
    wx.mp.config-storage.http-client-type=httpclient      # http客户端类型: httpclient(默认), okhttp, joddhttp
    wx.mp.config-storage.http-proxy-host=
    wx.mp.config-storage.http-proxy-port=
    wx.mp.config-storage.http-proxy-username=
    wx.mp.config-storage.http-proxy-password=
    
  3. 自动注入的类型
  • WxMpService以及相关的服务类, 比如: wxMpService.getXxxService
  • WxMpConfigStorage