4.3 Deprecated Elements and Effects on Schema

If you use the unversioned schema in your namespace references and use any deprecated elements (see Section 3.3, “Deprecated XSD Schema Features”), you will get XML parsing errors. Either change your application context configuration, removing the deprecated attributes, or change to explicitly use the 2.5 version of the schema as in the following example:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
        default-dependency-check="all"
        default-autowire="autodetect">

    <!-- bean definitions ... -->

</beans>

The removed attributes only affect the schema. The underlying code supporting the 2.5 schema is still provided in Spring 3.0.