PropertySourcesPlaceholderConfigu
全部标签 查看3.1(http://blog.springsource.org/2011/02/15/spring-3-1-m1-unified-property-management/)中新的spring属性支持,看起来应该可以:其中login.security在application-customer-dev.properties中为:login.security=dev(并且security-dev.xml确实存在于适当的位置)。我错过了一些东西,因为login.security无法解决。我希望在3.1之前的spring版本中出现这种行为,但看起来这应该对3.1有效(我们正在使用)?
我有以下配置类:@Configuration@PropertySource(name="props",value="classpath:/app-config.properties")@ComponentScan("service")publicclassAppConfig{我有属性(property)服务:@ComponentpublicclassSomeService{@Value("#{props['some.property']}")privateStringsomeProperty;当我想测试AppConfig配置类时收到错误org.springframework.beans