cvc-complex-type.2.4.a: Invalid content was found starting with element
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘display-name‘. One of
‘{"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}‘ is
expected.
解決辦法為:將“http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd”這段話加入到xml文件的"xmlns:xsi="的標簽中
cvc-complex-type.2.4.a: Invalid content was found starting with element