I am working on a Spring 3 project and I need to format a Long
field for Turkish currency. The default Locale
of the application is en_US
There are many ways but you could for example register a custom implementation of AnnotationFormatterFactory<NumberFormat>
as a bean which would allow you to handle the formatting manually. This is documentented in the Spring documentation section 6.6. The example in the documentation even handles the use case of adjusting @NumberFormat
's behavior.