IDEA中Maven项目中报错:10 unmapped Spring configuration files

##1.报错描述

IDEA中Maven项目中报错:10 unmapped Spring configuration files_第1张图片

##2.问题解决
分析:spring配置有问题

IDEA中Maven项目中报错:10 unmapped Spring configuration files_第2张图片

修改为


 <context-param>
     <param-name>contextConfigLocationparam-name>
     <param-value>classpath:applicationContext.xmlparam-value>
 context-param>
 <listener>
     <listener-class>org.springframework.web.context.ContextLoaderListenerlistener-class>
 listener>

你可能感兴趣的:(Maven,IDEA,Spring合集)