【发布时间】:2018-06-04 05:28:13
【问题描述】:
我正在创建 Spring MVC 项目。
在 web.xml 中 <spring-class>org.springframework.web.servlet.DispatcherServlet</spring-class>
我收到这个错误
"cvc-complex-type.2.4.a: 发现无效内容以 元素“弹簧类”。之一
{"http://xmlns.jcp.org/xml/ns/javaee":servlet-class, "http:// xmlns.jcp.org/xml/ns/javaee":jsp-file, "http://xmlns.jcp.org/xml/ns/javaee":init- param, "http://xmlns.jcp.org/xml/ns/javaee":load-on-startup, "http://xmlns.jcp.org/ xml/ns/javaee":enabled, "http://xmlns.jcp.org/xml/ns/javaee":async-supported,是
"http://xmlns.jcp.org/xml/ns/javaee":run-as, "http://xmlns.jcp.org/xml/ns/ javaee":security-role-ref, "http://xmlns.jcp.org/xml/ns/javaee":multipart-config}
预计。”
谁能帮我解决这个问题
【问题讨论】:
-
不提供minimal reproducible example,很难给出答案。
标签: java xml spring spring-mvc servlets