Trying to auto-wire properties to a bean in Spring 3.0.5.RELEASE, I\'m using:
config.properties
:
username=myusername
<
Found what the issue was. Copy/paste from comments:
Are you sure you have <context:property-placeholder>
in the same application context as your MyClass bean (not in the parent context)? – axtavt
You're right. I moved <context:property-placeholder>
from the context defined by the ContextLoaderListener
to the servlet context. Now my values get parsed. Thanks a lot! - alex