Skip to content

Commit

Permalink
✨ 支持 Spring boot 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunMengLu committed Dec 11, 2022
1 parent c663a75 commit 4669b70
Show file tree
Hide file tree
Showing 15 changed files with 209 additions and 280 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ jfinal weixin 的 spring boot starter,这个starter是为了方便boot用户
- `IJPay` 支付SDK让支付触手可及:[https://gitee.com/javen205/IJPay](https://gitee.com/javen205/IJPay)

## 兼容性
支持 Spring boot 1.x 和 2.x

## 版本说明
| version | spring boot version | java version |
|-------|----------------|--------------|
| 3.0.0 | 3.x | 17 |
| 2.1.2 | 1.x ~ 2.x | 1.8 |

## Jar包依赖(最新)
```xml
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-weixin</artifactId>
<version>2.1.2</version>
<version>3.0.0</version>
</dependency>
```

Expand Down Expand Up @@ -105,6 +110,14 @@ public class WxConfigDatabaseLoader implements WxConfigLoader {
```

## 更新说明

### 2022-12-11 3.0.0
- 升级 java 到 java17。
- 升级 Spring boot 到 3.x。
- 升级 jfinal 到 5.0.8。
- 升级 lombok 到 1.18.24。


### 2021-11-22 2.1.2
- 微调,兼容更多版本,测试 Spring boot 2.6.0 兼容性。
- 升级 jfinal 到 4.9.17。
Expand Down
14 changes: 4 additions & 10 deletions mica-weixin-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.12.RELEASE</version>
<!-- <version>2.3.3.RELEASE</version>-->
<!-- <version>2.4.4</version>-->
<!-- <version>2.6.0</version>-->
<version>3.0.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand All @@ -34,19 +31,19 @@
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-weixin</artifactId>
<version>2.1.2</version>
<version>3.0.0</version>
</dependency>
<!-- caffeine 存储 weixin token,可选依赖,对 Spring boot 有版本兼容,需要自行选择合适的版本 -->
<!-- <dependency>-->
<!-- <groupId>net.dreamlu</groupId>-->
<!-- <artifactId>mica-caffeine</artifactId>-->
<!-- <version>2.5.2</version>-->
<!-- <version>3.0.0</version>-->
<!-- </dependency>-->
<!-- redis 存储 weixin token,可选依赖,对 Spring boot 有版本兼容,需要自行选择合适的版本 -->
<!-- <dependency>-->
<!-- <groupId>net.dreamlu</groupId>-->
<!-- <artifactId>mica-redis</artifactId>-->
<!-- <version>2.5.2</version>-->
<!-- <version>3.0.0</version>-->
<!-- </dependency>-->
</dependencies>

Expand All @@ -55,9 +52,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
11 changes: 5 additions & 6 deletions mica-weixin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ group = GROUPID
version = VERSION

ext {
javaVersion = JavaVersion.VERSION_1_8
springBootVersion = "2.6.0"
jfinalVersion = "4.9.17"
javaVersion = JavaVersion.VERSION_17
springBootVersion = "3.0.0"
jfinalVersion = "5.0.8"
jfinalWeixinVersion = "3.4"
okhttpVersion = "3.14.9"
micaAutoVersion = "2.1.3"
lombokVersion = "1.18.22"
micaAutoVersion = "3.0.0"
lombokVersion = "1.18.24"
}

allprojects {
Expand All @@ -19,7 +19,6 @@ allprojects {

repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/nexus/content/groups/public" }
maven { url "https://repo.spring.io/libs-release" }
maven { url "https://repo.spring.io/milestone" }
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion mica-weixin/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=2.1.2
VERSION=3.0.0
GROUPID=net.dreamlu

userName=chunmeng
Expand Down
Binary file modified mica-weixin/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion mica-weixin/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 4669b70

Please sign in to comment.