Instantiate - 容器在 XML 文件里找到定义并实例化它们Populate properties - 使用 DI 填充属性Set Bean Name - If the bean implements BeanNameAware interface, spring passes the bean's id to setBeanName() method.Set Bean factory - If Bean implements BeanFactoryAware interface, spring passes the beanfactory to setBeanFactory() method.
singleton: Return a single bean instance per Spring IoC containerprototype: Return a new bean instance each time when requestedrequest: Return a single bean instance per HTTP requestsession: Return a single bean instance per HTTP sessionglobal-session: Return a single bean instance per global HTTP session默认的是 singleton