Skip to main content

Formatter Configuration

Learn Formatter Configuration (Spring MVC Configuration, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Formatter converts between a String and an object for web binding (for example "2026-01-15" to LocalDate ) with a Locale . Converter vs Formatter : a Converter maps one type to another; a Formatter<T> works only with String and is locale aware. addFormatters in WebMvcConfigurer registers formatters and converters on a FormatterRegistry .

More lessons in Spring MVC Configuration