请看下列代码:
<bean id="accountService" class="com.tarena.service.impl.AccountServiceImpl">
代码中AccountServiceImpl对象的创建时机是:
类加载时创建AccountServiceImpl的对象
容器初始化时创建AccountServiceImpl的对象
调用getBean()方法时创建AccountServiceImpl的对象
调用AccountServiceImpl中的方法时创建AccountServiceImpl的对象