坑
在运行时404未在Lib下导入maven依赖,导入依赖后发现还是不能运行500,仔细检查代码保证正确,并且在maven中插入这个处理资源文件
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
发现还是不能运行!!!!!!!!!!!!!!!!!!!!!!!!!!!!
最终
发现Available Elements未选择到自己项目目录下,导致out里面少包不能正常运行
IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist