IOC创建对象的方式 1、下标赋值 <constructor-arg index="0" value="请将"/> 3、参数名 <constructor-arg name="name" value="秦将"/> 在配置文件初始化时,容器中管理的对象就已经初始化。