1. 先想加载applicationContext*.xml实例化,把bean(前提是scope=singleton)实例化到内存中 2. 调用set方法设置属性将其set值 3. 使用配置的bean 4. 容器关闭