spring-framework / org.springframework.format.annotation / NumberFormat / pattern

pattern

val pattern: String

The custom pattern to use to format the field.

Defaults to empty String, indicating no custom pattern String has been specified. Set this attribute when you wish to format your field in accordance with a custom number pattern not represented by a style.