配置方法:<beans default-autowire="byName">……</beans>注意:1.基本类型数据是不能注入的2.一般是把service设置成自动注入到bean中,而不把dao设置成自动注入到service中。