http://blog.csdn.net/qq_25821067/article/details/52625525
出现cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of '{"http://Java.sun.com/xml/ns/javaee":init-param}' is expected.web.xml/movie/WebContent/WEB-INFline 17XML Problem
error, solution.
修改头文件为<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
http://www.springmodules.org/schema/cache/springmodules-cache.xsd
http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
http://blog.csdn.net/niu_hao/article/details/25250213
When writing xml, I always report cvc-complex-type.2.4.a: Invalid content was found starting with element error, and there is a small red cross. I have found a lot on the Internet, and some say it is the code that reports the red cross. Written between <jsp-config></jsp-config>, after trying it, it is completely useless.
Later, I found a method on the foreign language website to solve the problem.
The solution is: add the phrase "http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd" to In the "xmlns:xsi=" tag of the xml file
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
- http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
- ">