The following error occurs when SpringMVC integrates DWR over the past few days:
Multiple annotations found at this line:
-Cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr: annotation-config '.
-Schema_reference.4: Failed to read schema document 'HTTP: // www.directwebremoting.org/schema/spring-dwr/spring-dwr-3.0.xsd', because 1)
Cocould not find the document; 2) the document cocould not be read; 3) the root element of the document is not .
I found a lot of answers on the Internet and did not solve the problem. First, we will upload a picture:
After a sleep, I thought about this problem again. The root cause of this error is that in the case of Internet connection, I cannot find the desired resource at http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd. So I copied the slave.
So I typed http://www.directwebremoting.org/schemaon on the address bar, but it was still a failure and depressing! I'm typing http://directwebremoting.org/schemaand missing three WWWS, as shown in the following figure:
Finally, find the desired:
Then change to http://directwebremoting.org/schema/spring-dwr/spring-dwr-3.0.xsd in xml
No error is displayed, even when...
It was speechless, but it finally solved the problem that had been plagued for many days.