Appendix C. XML Schema-based configuration
C.2.2 The
utilschemaFirst up is coverage of the
utiltags. As the name
implies, theutiltags deal with common, utility
configuration issues, such as configuring collections, referencing constants,
and suchlike.To use the tags in the
utilschema, 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 theutilnamespace 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>
浙公网安备 33010602011771号