Appendix C. XML Schema-based configuration
C.2.2 The
util
schemaFirst up is coverage of the
util
tags. As the name
implies, theutil
tags deal with common, utility
configuration issues, such as configuring collections, referencing constants,
and suchlike.To use the tags in the
util
schema, you need to have
the following preamble at the top of your Spring XML configuration file;
the bold text in the snippet below references the correct schema so that
the tags in theutil
namespace are available to you.<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"> <!-- <bean/> definitions here --> </beans>