Recently, I had a discussion with one of my colleagues during a code review. We talked about a hidden gem in Spring (as well as other frameworks like Micronaut) that could simplify our code.
Let’s consider a task: developing a good morning greeting system that supports both English and Hebrew languages. The system should greet us in each of these languages.
We’ll begin with the native implementation by introducing our greeters: