A component required a bean of type 'xx' that could not be foun

 


Description:

A component required a bean of type 'com.wonders.app.entity.KtsysMessagePush' that could not be found.


Action:

Consider defining a bean of type 'com.wonders.app.entity.KtsysMessagePush' in your configuration.

最近狀態不是很好老,上述錯誤經常出現這裏記錄以供參考:

  1.上下文缺失

 比如,service 只有接口沒有實現類

2.語句寫一半

 比圖 使用了@resource 註釋沒有被註釋的語句

3.註解了實體類

比如:


    @Resource
    private USER USER;

 

發佈了41 篇原創文章 · 獲贊 10 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章