提交 69824590 编写于 作者: 如梦技术's avatar 如梦技术 🐛

v1.3.1

上级 d0218fff
......@@ -3,12 +3,14 @@ jfinal weixin 的 spring boot starter,这个starter是为了方便boot用户
具体demo请查看:`spring-boot-weixin-demo`[JFinal-weixin文档](https://gitee.com/jfinal/jfinal-weixin/wikis/pages?title=Home)
Spring 全家桶 `QQ交流群`:479710041。
## Jar包依赖
```xml
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>spring-boot-starter-weixin</artifactId>
<version>1.3.0</version>
<version>1.3.1</version>
</dependency>
```
......@@ -58,6 +60,9 @@ dream:
- `access-token-cache`建议配置有效时间7100秒。
## 更新说明
>## 2018-12-23 v1.3.1
> `WeixinAppConfig` 改为实现 `SmartInitializingSingleton`。
>## 2018-05-03 v1.3.0
> 弃用`@EnableDreamWeixin`,导入jar包即可享用。
> 将消息路由改为spring接管。
......
VERSION=1.3.0
VERSION=1.3.1
GROUPID=net.dreamlu
userName=chunmeng
......
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
......@@ -9,20 +9,18 @@ import com.jfinal.wxaapp.WxaConfig;
import com.jfinal.wxaapp.WxaConfigKit;
import lombok.AllArgsConstructor;
import net.dreamlu.weixin.properties.DreamWeixinProperties;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.context.annotation.Configuration;
import java.util.List;
@Configuration
@AutoConfigureAfter(DreamWeixinAutoConfiguration.class)
@AllArgsConstructor
public class WeixinAppConfig implements InitializingBean {
public class WeixinAppConfig implements SmartInitializingSingleton {
private final DreamWeixinProperties weixinProperties;
@Override
public void afterPropertiesSet() throws Exception {
public void afterSingletonsInstantiated() {
boolean isdev = weixinProperties.isDevMode();
ApiConfigKit.setDevMode(isdev);
List<DreamWeixinProperties.ApiConfig> list = weixinProperties.getWxConfigs();
......
......@@ -14,7 +14,8 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.12.RELEASE</version>
<!--<version>1.5.12.RELEASE</version>-->
<version>2.0.4.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
......
......@@ -11,3 +11,4 @@ dream:
wxa-config:
app-id: wx4f53594f9a6b3dcb
app-secret: eec6482ba3804df05bd10895bace0579
json-type: jackson
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册