Relative Content

Tag Archive for springspring-boot

Spring configuration bean in library, pulling properties from application yaml

I’ve moved some shared common code into a little library. This library has its own @Configuration. I either then wanted the application that is including this library to be able to supply properties via its own application.yaml OR (even better) override an included application.yaml that was in the library jar.

Spring boot 3 Internationalization with variants

I would like to have internationalization for a given language with different variants.
My case is to display for the same language, different messages according to if the user is a teacher or a student.
So I have tried messages files like :