@ImportResource注解主要用于导入Spring的xml配置文件注册的Bean。
该注解只能使用配置类注解(@Configuration)或者组件注解(@Component)中使用,否则无效。