码迷,mamicode.com
首页 > 其他好文 > 详细

Configuration problem: 'bean' or 'parent' is required for <ref> element

时间:2020-04-14 20:46:54      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:pat   ble   img   code   image   extc   目录   ati   com   

我出现此错误的原因是web.xml中没有指定spring的启动配置文件applicationContext.xml的加载位置。applicationContext.xml原来再webRoot/webInfo下,后来我把applicationContext.xml放在了src根目录下了。

因此需要再web.xml指定一下。

<context-param>

  <context-name>contextConfigLocation</context-name>

  <context-value>classpath:applicationContext.xml</context-value>

</context-param>

 

 

 

技术图片

 

Configuration problem: 'bean' or 'parent' is required for <ref> element

标签:pat   ble   img   code   image   extc   目录   ati   com   

原文地址:https://www.cnblogs.com/pecool/p/12700270.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!