Spring 3.0.5 doesn't evaluate @Value annotation from properties
问题 Trying to auto-wire properties to a bean in Spring 3.0.5.RELEASE , I'm using: config.properties : username=myusername main-components.xml : <context:property-placeholder location="classpath:config.properties" /> MyClass: @Service public class MyClass { @Value("${username}") private String username; ... } As a result, username gets set to literally "${username}" , so the expression doesn't get parsed. My other auto-wired dependencies on this class get set, and Spring doesn't throw any