Announcement Announcement Module
Collapse
No announcement yet.
Does <property-placeholder contribute PropertySources to the Environment? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does <property-placeholder contribute PropertySources to the Environment?

    Hi,
    I am aware that @PropertySource will add the property source to the environment.
    Shouldn't declaring the properties in XML:
    Code:
    <context:property-placeholder location="classpath*:*some.properties" />
    do the same?
    As far as I can tell, the property sources defined as such are not actually added to the envirnment - accessing them via the Environment directly doesn't resolve them.
    Am I missing some vital part of the configuration in order to get these into the environement as well?
    Thanks.
    Eugen.
Working...
X