Skip to content

Support @NumberFormat as a meta-annotation [SPR-12743] #17340

Closed
@spring-projects-issues

Description

@spring-projects-issues

Kazuki Shimizu opened SPR-12743 and commented

Support @NumberFormat as a meta-annotation the same as @DateTimeFormat.

@NumberFormat(style = NumberFormat.Style.PERCENT)
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PercentNumber {}
public class TestBean {
    @PercentNumber
    private Double percent;
    // ...
}

Affects: 4.1 GA

Issue Links:

Referenced from: pull request #741

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions