1 <?XML version= "1.0" encoding= "UTF-8"?>2 <Beansxmlns= "Http://www.springframework.org/schema/beans"3 Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"4 xsi:schemalocation= "Http://www.springframework.org/schema/beans5 http://www.springframework.org/schema/beans/spring-beans.xsd ">6 </Beans>
First line: Declare this file in XML format, version 1.0 encoded UTF-8 format
Second line: Insert the beans tag and introduce a namespace xmlns= "Http://www.springframework.org/schema/beans" does not use the namespace prefix
Third line: xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" declares a namespace "http://www.w3.org/2001/XMLSchema-instance" The prefix is xsi, and this namespace is a standard label specification namespace for XML that follows W3.
Row four: Use the Namespace property of the xsi prefix schemalocation specify the location of a namespace and schema file, and note the order.
A detailed description of the spring configuration XML file