Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mica
mica-weixin
提交
69824590
M
mica-weixin
项目概览
mica
/
mica-weixin
通知
8
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mica-weixin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
69824590
编写于
12月 23, 2018
作者:
如梦技术
🐛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v1.3.1
上级
d0218fff
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
9 deletion
+14
-9
README.md
README.md
+6
-1
spring-boot-starter-weixin/gradle.properties
spring-boot-starter-weixin/gradle.properties
+1
-1
spring-boot-starter-weixin/gradle/wrapper/gradle-wrapper.jar
spring-boot-starter-weixin/gradle/wrapper/gradle-wrapper.jar
+0
-0
spring-boot-starter-weixin/gradle/wrapper/gradle-wrapper.properties
...t-starter-weixin/gradle/wrapper/gradle-wrapper.properties
+1
-1
spring-boot-starter-weixin/src/main/java/net/dreamlu/weixin/config/WeixinAppConfig.java
.../main/java/net/dreamlu/weixin/config/WeixinAppConfig.java
+3
-5
spring-boot-weixin-demo/pom.xml
spring-boot-weixin-demo/pom.xml
+2
-1
spring-boot-weixin-demo/src/main/resources/application.yml
spring-boot-weixin-demo/src/main/resources/application.yml
+1
-0
未找到文件。
README.md
浏览文件 @
69824590
...
...
@@ -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接管。
...
...
spring-boot-starter-weixin/gradle.properties
浏览文件 @
69824590
VERSION
=
1.3.
0
VERSION
=
1.3.
1
GROUPID
=
net.dreamlu
userName
=
chunmeng
...
...
spring-boot-starter-weixin/gradle/wrapper/gradle-wrapper.jar
浏览文件 @
69824590
无法预览此类型文件
spring-boot-starter-weixin/gradle/wrapper/gradle-wrapper.properties
浏览文件 @
69824590
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
spring-boot-starter-weixin/src/main/java/net/dreamlu/weixin/config/WeixinAppConfig.java
浏览文件 @
69824590
...
...
@@ -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
InitializingBea
n
{
public
class
WeixinAppConfig
implements
SmartInitializingSingleto
n
{
private
final
DreamWeixinProperties
weixinProperties
;
@Override
public
void
after
PropertiesSet
()
throws
Exception
{
public
void
after
SingletonsInstantiated
()
{
boolean
isdev
=
weixinProperties
.
isDevMode
();
ApiConfigKit
.
setDevMode
(
isdev
);
List
<
DreamWeixinProperties
.
ApiConfig
>
list
=
weixinProperties
.
getWxConfigs
();
...
...
spring-boot-weixin-demo/pom.xml
浏览文件 @
69824590
...
...
@@ -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>
...
...
spring-boot-weixin-demo/src/main/resources/application.yml
浏览文件 @
69824590
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录