org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xx' is defined

来源:互联网 发布:office 破解版 知乎 编辑:程序博客网 时间:2024/05/22 17:01
这个错误的主要原因是1看xxbean是否已经注入,或者得到的bean名字错误.2看spring的配置文件    <context:component-scan base-package="com.xx"></context:component-scan>是否扫描了
0 0