在你的Spring上下文中,xml mvc名称空间url应该与schemaLocation中的url相匹配。像这样:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
这是标准的XML名称空间声明。名称空间url是一种唯一ID,然后将其映射到xsi:schemaLocation中的实际架构位置。



