这是我的web.xml
xsd
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
这是servlet节点
<servlet>
<servlet-name>spring1</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param> <!-- here is a problem -->
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-servlet.xml</param-value>
</init-param>
</servlet>
在标记的行 xml 验证器上说
cvc-complex-type.2.4.a:发现以元素“init-param”开头的无效内容。'{" http://java.sun.com/xml/ns/javaee ":enabled, " http://java.sun.com/xml/ns/javaee ":async-supported, " http:// /java.sun.com/xml/ns/javaee ":run-as, " http://java.sun.com/xml/ns/javaee ":security-role-ref, " http://java.sun .com/xml/ns/javaee ":multipart-config}' 是预期的。
出了什么问题,我该如何纠正这个错误?