Cannot find the declaration of element ‘beans’

Explain the function of static keyword and final keyword in Java in detail>>>

Spring Exception: cvc-elt.1: Cannot find the declaration of element ‘beans’

The reason is that the server can’t load the XSD file from the spring website successfully

Scheme 1:

Load spring-beans-2.5.xsd from the official website instead of the local classpath


Change to:


Scheme 2 (recommended)

Copy spring.handlers and spring.schemas from spring jar package under spring-framework-2.5.6, SRC, meta-inf to SRC, main, webapp, meta-inf in Web project

Similar Posts: