(六)bean的作用域 🤔 在Spring中,设置创建的bean是单实例的还是多实例的? 😸 在Spring中默认情况下是单实例的 @Test public void testEpmDept() { //加载配置文件 ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("com/lzx/UserBean.xml");