Spring's xml configuration file reports an error:
When using util:map in xml, an error is reported when using util:map:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'util:map'.
<util:map> <!-- ... --> </util:map>
Obviously, it is the reason of xsd, which has been declared at the beginning:
xmlns:util="http://www.springframework.org/schema/util"
Check http://www.springframework.org/schema/util/spring-util.xsd, you can see that there is a map declaration, no problem.
After finding out the reason, the xsd in xsi:schemaLocation is wrong:
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/util/spring-util http://www.springframework.org/schema/util/spring-util.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
change into:
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
Cause analysis, the declaration of xsd is wrongly configured, resulting in the correct xsd not being introduced.