三十岁的菜鸡 2015-05-18 02:56 采纳率: 100%
浏览 1462

新手Spring错误,求详细解答

出现这个错误,新手求指教怎么修改
: Error creating bean with name 'leavePersonManageBS': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'leavePersonListQuery' is defined

  • 写回答

4条回答 默认 最新

  • SZ_mark 2015-05-18 03:08
    关注

    注入的时候错误,
    'leavePersonManageBS'这个没有找到。
    不清楚你spring使用的什么方式注入。
    bean的xml中有没有

    或者在service那里没有@Resource

    评论

报告相同问题?

悬赏问题

  • ¥15 overleaf中论文编辑,报错`pages' is a missing field, not a string, for entry 4
  • ¥15 vhdl+MODELSIM
  • ¥20 simulink中怎么使用solve函数?
  • ¥30 dspbuilder中使用signalcompiler时报错Error during compilation: Fitter failed,求解决办法
  • ¥15 gwas 分析-数据质控之过滤稀有突变中出现的问题
  • ¥15 没有注册类 (异常来自 HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
  • ¥15 知识蒸馏实战博客问题
  • ¥15 用PLC设计纸袋糊底机送料系统
  • ¥15 simulink仿真中dtc控制永磁同步电机如何控制开关频率
  • ¥15 用C语言输入方程怎么