这是文件放置位置:

web.xml文件配置:


springmvc-serlvet.xml配置文件代码:

问题来了,当我配完这些后,用tomcat运行WebContent下images里的图片时显示404无法访问:

这是文件放置位置:





你的web.xml配置的contextConfigLocation文件是applicationContext.xml 他又怎么会加载springmvc-servlet.xml?
除非你在applicationContext.xml 加上其他XML文件的配置,或者修改web.xml的contextConfigLocation