Closed
Description
Yanming Zhou opened SPR-12657 and commented
according to http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/context/annotation/PropertySource.html
@Order(1)
@Configuration
@PropertySource("classpath:/com/myco/a.properties")
public class ConfigA { }
@Order(-1)
@Configuration
@PropertySource("classpath:/com/myco/b.properties")
public class ConfigB { }
<context:component-scan base-package="com.myco"/>
changing @Order
of @Configuration
doesn't affect property source overriding.
Issue Links:
- Regression: @Primary annotation not working when overriding bean definition with classpath scanning [SPR-12934] #17527 Regression:
@Primary
annotation not working when overriding bean definition with classpath scanning
Referenced from: commits f5b4e18
0 votes, 6 watchers