mvn打包报错:Failed to load ApplicationContext

图片说明
ApplicationContext中扫描的包:


/context:component-scan

            springmvc.xml中扫描的包:
            <context:component-scan base-package="com.aa.controller" />

图片说明
问题已解决,pom配置文件中没有配置加载resources,所以加载不到resources目录下面的配置文件!加上配置就好了!

错误比较愚蠢,还是新手对maven的理解不够深刻,仔细仔细再仔细一些就好了!