1. 自动装配就是无需手动写<poperty>来注入某个值(一般是自定义的类)。这里代码:<br />[https://gitee.com/gao_xi/spring-demo1/tree/xml-autowire/](https://gitee.com/gao_xi/spring-demo1/tree/xml-autowire/)<br />下面罗列几个注意点:<br />1.自动装配的属性也要有setter方法<br />2.byName时,属性名必须和bean标签中的id一致