Relative imports in @Configuration classes [SPR-8356] #13003
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Keith Donald opened SPR-8356 and commented
The following
@Configuration
class declared in packagecom.springsource.greenhouse.config
, which uses imports, could be simplified from:to something like:
This would make things more concise, future-proof to refactoring changes, and consistent with how beans:import tag works (imported resources there are relative to the location of the enclosing resource).
Also, it seems imports are now webapp-root relative for web applications. I'm not so sure this is desirable, since these are
@Configuration
classes in the classpath. I would expect imports to always be classpath resources unless an alternative resource loading scheme was used.Issue Links:
@ImportResource
The text was updated successfully, but these errors were encountered: