非自定义命名空间
?首先引入对应命名空间的标签
在引入对应schemaLocation的映射(一对)
<?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:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc" //对应命名空间的标签
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc //对应schemaLocation的映射
http://www.springframework.org/schema/mvc/spring-mvc.xsd"> //对应schemaLocation的映射