Skip to content
New issue

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

支持通过 @ContainerConstant 注解的配置,反转基于常量类构建的容器键值 #33

Closed
Createsequence opened this issue Mar 28, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Createsequence
Copy link
Collaborator

支持在 @ContainerConstant 中配置反转常量属性的键值,比如:

@ContainerConstant(reverse = true)
public static class FooConstant {
    public static final String ONE = "one";
    public static final String TWO = "two";
    public static final String THREE = "three";
}

在上述示例中,通过 reverse 属性声明了键值反转,则基于该常量类构建的容器,可以通过属性值获得属性名,比如输入 one,则得到的对应数据源对象为属性名 ONE

@Createsequence Createsequence added the enhancement New feature or request label Mar 28, 2023
@Createsequence Createsequence added this to the release 1.2.0 milestone Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant