Skip to content

context register @Configuration doesn't respect @Order [SPR-12657] #17257

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits f5b4e18

0 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions