Skip to content
Advertisement

Config multiple message properties

I have properties files and I need to set them both to be loaded, but I have no idea how to do this with multiple properties

JavaScript

Advertisement

Answer

Use @PropertySources. Annotate either a config class that holds the attributes of the files, or your Main class.

e.g.:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement