我出现此错误的原因是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

 

相关文章:

  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-10-29
  • 2021-08-20
  • 2021-08-30
  • 2021-07-16
猜你喜欢
  • 2021-10-27
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
相关资源
相似解决方案