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;

 

你可能感兴趣的:(异常,bug)