Spring default-autowire 问题

1、现在做项目遇到的问题,虽然在applicationContext.xml中配置了default-autowire=‘byName’,但它之中都用的import导入的xml配置文件,在这些导入的xml配置文件中并不继承这个default-autowire,所以每个被包含的spring配置文件中的default-autowire 是默认的‘no’;即不自动装载;

1、eclipse中 配置提示 ctrl + shift + <

3.ctrl + o 显示所有类中的方法及属性

你可能感兴趣的:(eclipse,spring,xml)