spring1-test1-spring使用步骤之组件注册、使用简单总结,并解决BeanFactory not initialized or already closed - call 'refres
实验1:spring的创建过程通过各种方式给容器注册对象(注册会员)以前是自己new对象,现在所有的对象交给容器创建,给容器中注册组件。当使用maven创建项目之后,并且配置好了相应的依赖。之后按照正常的步骤来测试下spring的容器组件是否可以正常运行。maven的创建过程在之前的博客中有提到详细的步骤。1、person类public class Person { pri...