i was wondering if it’s possible to initialize a constant in an interface from a property file using java or using spring messageSource, or such thing is not possible
please advise, thanks.
i was wondering if it’s possible to initialize a constant in an interface from
Share
You can:
However, that means that
Properties.getProperty(..)has to be a static method which relies on an already initialized message source (statically again). Depending on the project and the frameworks you use this might not be the best option.