1, review the configuration of spring XML
A single default namespace
We see that in the config file, we don't use namespace prefixes for elements such as Beans,bean. It can be cumbersome to repeatedly qualify an element or attribute to be used in a namespace.
In this case, you can declare a default namespace. there can be only one default namespace at any time .
Declaring a default namespace means that if any element in the scope of the default namespace declaration is not explicitly qualified with a prefix, the element is implicitly qualified. As with a prefixed namespace,
The default namespace can also be overridden.
The default namespace is declared in the following way
xmlns="Http://www.springframework.org/schema/beans
So we usually use what <bean xxxxxxx/> does not write the prefix, is to use the default
When we use a particular time
base-package="com.kooing.saas.persistent.Interface"/> <context: Property-placeholder location="classpath:properties/druid.properties"/>
Declare a specific namespace on top of it.
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context ="http://www.springframework.org/schema/context"
xmlns:xsi--refers to XML files adhering to the XML specification, xsi full name: XML Schema instance, refers to the specific use of the schema resource files defined by the elements of the specification. That is, http://www.w3.org/2001/XMLSchema-instance the elements defined in this file adhere to what standards
http://www.springframework.org/schema/beans/spring-beans.xsd
Spring is to validate the XML file at startup. If there are elements in the XML space that are not in the namespace, it is an error. Typically, the URI for the namespace is an address that holds the XSD, although the specification is not required. If schemalocation is not provided, the spring XML parser will load the XSD file from the URI of the namespace.
SchemaLocation provides a mapping of an XML namespace to a corresponding XSD (XML Schema Definition) file whose value consists of one or more URI reference pairs.
Two URIs are separated by a space character (spaces and line breaks are available). The first URI is the value of the defined XML namespace, and the second URI gives the actual location of the schema document,
The schema processor will read the schema document from this location, and the document's targetnamespace must match the first URI (the value of the XML namespace).
Note: There is no need to add a version number to the XSD, so your spring does not have to be changed, and he will automatically look for
Spring's <array> Tag error