在SSM项目中报 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 20 in XML document from class path resource [springmvcsevlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 25; cvc-complex-type.2.1: 元素 'mvc:resources' 必须不含字符或元素信息项 [子级], 因为该类型的内容类型为空。
从上面的报错信息可以看出是springmvc配置文件中 mvc:resources(静态文件有错);
下面是我写的代码
<!-- 静态资源映射 -->
<mvc:resources location="/static/" mapping="/static/**">
</mvc:resources>
<mvc:resources location