Skip to content

Commit 5d91544

Browse files
committed
release 1.4.3
1 parent c926e9b commit 5d91544

8 files changed

Lines changed: 31 additions & 20 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public class User {
188188

189189
```xml
190190
<properties>
191-
<mapstruct-plus.version>1.4.2</mapstruct-plus.version>
191+
<mapstruct-plus.version>1.4.3</mapstruct-plus.version>
192192
</properties>
193193
<dependencies>
194194
<dependency>

docs/README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,24 @@ footer:
6262
<dependency>
6363
<groupId>io.github.linpeilie</groupId>
6464
<artifactId>mapstruct-plus-spring-boot-starter</artifactId>
65-
<version>1.4.2</version>
65+
<version>1.4.3</version>
6666
</dependency>
6767
```
6868

6969
- gradle
7070

7171
```groovy
72-
implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.4.2'
72+
implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.4.3'
7373
```
7474

7575
## 更新日志
7676

77+
### 1.4.3
78+
79+
- feat: `ComponentModel` 增加 `spring-lazy` 可选项,懒加载 Spring Bean,解决互相依赖的问题,并将默认配置改为该选项;
80+
- fix: 解决 `unmappedTargetPolicy` 默认配置不生效的问题;
81+
- enhance: 优化 IDEA 本地开发构建效率,一定程度上缩短构建时间、减小元空间占用;[Issue #89](https://github.com/linpeilie/mapstruct-plus/issues/89)
82+
7783
### 1.4.2
7884

7985
- feat: `AutoMapper` 注解增加 `mapperNameSuffix` 属性,支持配置生成的转换接口名称增加后缀,默认规则下生成的反向转换接口同时生效;
@@ -101,13 +107,6 @@ implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-s
101107
> 当然,这个问题在之前也会有,几率可能低一些,所以多模块下,务必配置 `adapterPackage` 来避免该问题。
102108
> - Map 与对象的转换,还是依赖 hutool 中的类转换实现,如果需要该功能,需要额外引入 `hutool-core` 依赖包。
103109
104-
### 1.3.6
105-
106-
- 兼容内部类转换
107-
- feature : AutoMapping 注解中的 targetClass 支持配置父类
108-
- [issue#I8QPRO](https://gitee.com/easii/mapstruct-plus/issues/I8QPRO) : 框架自动生成的 AutoMapperConfig 和 AutoMapMapper 包和类名支持配置
109-
- [issue#I8T7EF](https://gitee.com/easii/mapstruct-plus/issues/I8T7EF) : 支持在父类中配置的 AutoMapping 注解
110-
111110
……
112111

113112
## 代码仓库

docs/en/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,25 @@ fotter:
5858
<dependency>
5959
<groupId>io.github.linpeilie</groupId>
6060
<artifactId>mapstruct-plus-spring-boot-starter</artifactId>
61-
<version>1.4.0</version>
61+
<version>1.4.3</version>
6262
</dependency>
6363
```
6464

6565
- gradle
6666

6767
```groovy
68-
implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.4.0'
68+
implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.4.3'
6969
```
7070

7171
## Change Log
7272

73-
### 1.4.2
74-
75-
Sure, here is the translated update document:
73+
### 1.4.3
7674

77-
---
75+
- **feat**: Added `spring-lazy` option to `ComponentModel` for lazy loading Spring Beans, resolving mutual dependency issues, and set this option as the default configuration.
76+
- **fix**: Fixed the issue where the default configuration for `unmappedTargetPolicy` was not effective.
77+
- **enhance**: Optimized IDEA local development build efficiency, reducing build time and metaspace usage to some extent.[Issue #89](https://github.com/linpeilie/mapstruct-plus/issues/89)
7878

79-
### Updates
79+
### 1.4.2
8080

8181
- **feat**: Added the `mapperNameSuffix` attribute to the `AutoMapper` annotation. This supports adding a suffix to the generated conversion interface name, and the reverse conversion interface will be effective under the default rules.
8282
- **feat**: Adapted the `Mapper` annotation to support the following attributes: `unmappedSourcePolicy`, `unmappedTargetPolicy`, `typeConversionPolicy`, `collectionMappingStrategy`, `nullValueMappingStrategy`, `nullValueIterableMappingStrategy`, `nullValuePropertyMappingStrategy`, `nullValueCheckStrategy`, and `mappingControl`.

docs/en/release/log.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ category:
66
description: MapStructPlus release log
77
---
88

9+
### 1.4.3
10+
11+
- **feat**: Added `spring-lazy` option to `ComponentModel` for lazy loading Spring Beans, resolving mutual dependency issues, and set this option as the default configuration.
12+
- **fix**: Fixed the issue where the default configuration for `unmappedTargetPolicy` was not effective.
13+
- **enhance**: Optimized IDEA local development build efficiency, reducing build time and metaspace usage to some extent.[Issue #89](https://github.com/linpeilie/mapstruct-plus/issues/89)
14+
915
### 1.4.2
1016

1117
- **feat**: Added the `mapperNameSuffix` attribute to the `AutoMapper` annotation. This supports adding a suffix to the generated conversion interface name, and the reverse conversion interface will be effective under the default rules.

docs/release/log.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ category:
66
description: MapStructPlus release log
77
---
88

9+
### 1.4.3
10+
11+
- feat: `ComponentModel` 增加 `spring-lazy` 可选项,懒加载 Spring Bean,解决互相依赖的问题,并将默认配置改为该选项;
12+
- fix: 解决 `unmappedTargetPolicy` 默认配置不生效的问题;
13+
- enhance: 优化 IDEA 本地开发构建效率,一定程度上缩短构建时间、减小元空间占用;[Issue #89](https://github.com/linpeilie/mapstruct-plus/issues/89)
14+
915
### 1.4.2
1016

1117
- feat: `AutoMapper` 注解增加 `mapperNameSuffix` 属性,支持配置生成的转换接口名称增加后缀,默认规则下生成的反向转换接口同时生效;

example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<properties>
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2020
<mapstruct.version>1.5.1.Final</mapstruct.version>
21-
<mapstruct-plus.version>1.4.3-SNAPSHOT</mapstruct-plus.version>
21+
<mapstruct-plus.version>1.4.3</mapstruct-plus.version>
2222
<lombok.version>1.18.22</lombok.version>
2323
<hutool.version>5.8.26</hutool.version>
2424
<guava.version>32.1.3-jre</guava.version>

mapstruct-plus/src/main/java/io/github/linpeilie/annotations/ComponentModelConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
@Retention(RetentionPolicy.SOURCE)
1010
public @interface ComponentModelConfig {
1111

12-
String componentModel() default "spring";
12+
String componentModel() default "spring-lazy";
1313

1414
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</modules>
1919

2020
<properties>
21-
<mapstruct-plus.version>1.4.3-SNAPSHOT</mapstruct-plus.version>
21+
<mapstruct-plus.version>1.4.3</mapstruct-plus.version>
2222
<maven.compiler.source>8</maven.compiler.source>
2323
<maven.compiler.target>8</maven.compiler.target>
2424
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

0 commit comments

Comments
 (0)