Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mica
mica-weixin
提交
9db6b420
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 搜索 >>
提交
9db6b420
编写于
7月 02, 2020
作者:
如梦技术
🐛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
⚡
联合 mica-redis 方便使用。
上级
96f6efb0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
64 addition
and
59 deletion
+64
-59
README.md
README.md
+3
-1
mica-weixin-demo/pom.xml
mica-weixin-demo/pom.xml
+58
-53
mica-weixin/src/main/java/net/dreamlu/weixin/config/DreamWeixinAutoConfiguration.java
...t/dreamlu/weixin/config/DreamWeixinAutoConfiguration.java
+1
-3
mica-weixin/src/main/java/net/dreamlu/weixin/properties/DreamWeixinProperties.java
.../net/dreamlu/weixin/properties/DreamWeixinProperties.java
+2
-2
未找到文件。
README.md
浏览文件 @
9db6b420
...
...
@@ -37,7 +37,7 @@ jfinal weixin 的 spring boot starter,这个starter是为了方便boot用户
### 配置
| 配置项 | 默认值 | 说明 |
| ----- | ------ | ------ |
| dream.weixin.access-token-cache | dreamWeixinCache | 缓存名,需要开启spring cache |
| dream.weixin.access-token-cache | dreamWeixinCache
#7100s
| 缓存名,需要开启spring cache |
| dream.weixin.app-id-key | appId | 多公众号参数名,如:/weixin/wx?appId=xxx |
| dream.weixin.dev-mode | false | 开发模式 |
| dream.weixin.url-patterns | /weixin/
*
| weixin 消息处理spring拦截器url前缀 |
...
...
@@ -68,6 +68,8 @@ dream:
## 更新说明
### 2020-07-05 v2.0.0
-
改名为 mica-weixin,提升 mica 品牌。
-
内置 @EnableCaching。
-
更改缓存名为
`dreamWeixinCache#7100s`
,方便和
`mica-redis`
一起使用。
-
升级 jfinal、jfinal-weixin 版本。
### 2020-05-01 v1.4.0
...
...
mica-weixin-demo/pom.xml
浏览文件 @
9db6b420
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.example
</groupId>
<artifactId>
mica-weixin-demo
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
jar
</packaging>
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.example
</groupId>
<artifactId>
mica-weixin-demo
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
mica-weixin-demo
</name>
<description>
Demo project for Spring Boot
</description>
<name>
mica-weixin-demo
</name>
<description>
Demo project for Spring Boot
</description>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<!-- <version>1.5.12.RELEASE</version>-->
<version>
2.2.6
.RELEASE
</version>
<relativePath
/>
<!-- lookup parent from repository -->
</parent>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<!-- <version>1.5.12.RELEASE</version>-->
<version>
2.3.1
.RELEASE
</version>
<relativePath
/>
<!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
</properties>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
net.dreamlu
</groupId>
<artifactId>
spring-boot-starter-weixin
</artifactId>
<version>
1.4.0
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
net.dreamlu
</groupId>
<artifactId>
mica-weixin
</artifactId>
<version>
2.0.0
</version>
</dependency>
<!-- redis 存储 weixin,可选依赖 -->
<dependency>
<groupId>
net.dreamlu
</groupId>
<artifactId>
mica-redis
</artifactId>
<version>
2.0.3-GA
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
</configuration>
</plugin>
</plugins>
</build>
</project>
mica-weixin/src/main/java/net/dreamlu/weixin/config/DreamWeixinAutoConfiguration.java
浏览文件 @
9db6b420
...
...
@@ -20,13 +20,11 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
*/
@Configuration
@EnableCaching
@RequiredArgsConstructor
@EnableConfigurationProperties
(
DreamWeixinProperties
.
class
)
public
class
DreamWeixinAutoConfiguration
{
private
final
CacheManager
cacheManager
;
@Bean
public
SpringAccessTokenCache
springAccessTokenCache
(
DreamWeixinProperties
properties
)
{
public
SpringAccessTokenCache
springAccessTokenCache
(
CacheManager
cacheManager
,
DreamWeixinProperties
properties
)
{
Cache
cache
=
cacheManager
.
getCache
(
properties
.
getAccessTokenCache
());
return
new
SpringAccessTokenCache
(
cache
);
}
...
...
mica-weixin/src/main/java/net/dreamlu/weixin/properties/DreamWeixinProperties.java
浏览文件 @
9db6b420
...
...
@@ -29,9 +29,9 @@ public class DreamWeixinProperties {
*/
private
boolean
devMode
=
false
;
/**
* Spring cache name,需要开启spring cache,默认:dreamWeixinCache
* Spring cache name,需要开启spring cache,默认:dreamWeixinCache
#7100s
*/
private
String
accessTokenCache
=
"dreamWeixinCache"
;
private
String
accessTokenCache
=
"dreamWeixinCache
#7100s
"
;
/**
* 多公众号url挂参,默认:appId
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录