方法一:在初始化时保存ApplicationContext对象 代码: 方法二:通过Spring提供的工具类获取ApplicationContext对象 方法三: ApplicationContext context = new ClassPathXmlApplicationContext(
|
方法一:在初始化时保存ApplicationContext对象 代码: 方法二:通过Spring提供的工具类获取ApplicationContext对象 方法三: ApplicationContext context = new ClassPathXmlApplicationContext(
|