We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
比如说,我配置了一个枚举容器:
@ContainerEnum(namespace = "resource_type", key = "code", value = "name") @Getter @RequiredArgsConstructor public enum ResourceTypeEnum { // ... ... }
该枚举容器 key 值为 code,而 value 为 name。
现在,我希望在容器中直接使用 name 替换 value,比如下面这个配置:
@AssembleResourceType(props = @Mapping) @ApiModelProperty(value = "资源类型") private String resourceType;
光秃秃的一个 @Mapping 看起来很突兀,因此建议在这种情况,干脆就不要指定 props 了。
@Mapping
The text was updated successfully, but these errors were encountered:
fix: when property mapping is not configured, value-to-key mapping is…
8042e04
… used by default (GitHub #190)
988a64e
2df5856
Createsequence
No branches or pull requests
比如说,我配置了一个枚举容器:
该枚举容器 key 值为 code,而 value 为 name。
现在,我希望在容器中直接使用 name 替换 value,比如下面这个配置:
光秃秃的一个
@Mapping
看起来很突兀,因此建议在这种情况,干脆就不要指定 props 了。The text was updated successfully, but these errors were encountered: