-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Keith Donald opened SPR-7973 and commented
I found the following odd with @ImportResource usage:
-
The
@ImportResourceResourceLoader does not appear to be the same ResourceLoader as the ApplicationContext. I am using a AnnotationConfigWebApplicationContext, and I got classpath-relative resources by default. -
Configuration-class relative resource resolution does not work, and one might expect it to. For example, if I import
@ImportResource("mvc-interceptors.xml") from the com.springsource.greenhouse.config.mvc package, I'd expect "mvc-interceptors.xml" to be in that package, and not the root of the classpath. Having to specify "com/springsource/greenhouse/config/mvc/mvc-interceptors.xml" is a lot more to type and feels strange.
Affects: 3.1 M1
Attachments:
- mylyn-context.zip (26.03 kB)
Issue Links:
- Dependency injection not supported on @FeatureConfiguration classes [SPR-7975] #12630 Dependency injection not supported on
@FeatureConfigurationclasses
Referenced from: commits 4cdb04a