October 2018
Intermediate to advanced
982 pages
23h 29m
English
The formatter facility is aims to provide a similar functionality to PropertyEditors. By registering our formatter with FormatterRegistry in the overridden addFormatters method, we are instructing Spring to use our formatter to translate a textual representation of our book into an entity object and back. As formatters are stateless, we don't need to do the registration in our controller for every call; we have to do it only once and this will ensure Spring uses it for every web request.
Read now
Unlock full access