org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xx' is defined
生活随笔
收集整理的這篇文章主要介紹了
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xx' is defined
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
概述
出現了org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xx' is defined 異常解決方法
1、看xxbean是否已經注入,或者得到的bean名字錯誤.2、看spring的配置文件 <context:component-scan base-package="com.xx"></context:component-scan>是否掃描了 《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xx' is defined的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: emulator: ERROR: x86
- 下一篇: java.lang.IllegalArg