异常:org.springframework.beans.factory.NoSuchBeanDefinitionException:
这个错误的主要原因是:
1看xxbean是否已经注入,或者得到的bean名字错误.
2看spring的配置文件 <context:component-scan base-package="com.xx"></context:component-scan>是否扫描了
这个错误的主要原因是:
1看xxbean是否已经注入,或者得到的bean名字错误.
2看spring的配置文件 <context:component-scan base-package="com.xx"></context:component-scan>是否扫描了