推薦:
spring xmlns 命名空間可從: http://www.springframework.org/schema/ 根據需求選擇 如: 1、選擇 : aop 2、複製瀏覽器地址 , 粘入 配置文件 xmlns:aop=""中,如果是contest 則 xmlns:contest=""
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd" >標簽屬性中
3、選擇對應的版本 ,進入後,再次複製瀏覽器地址,粘入配置文件緊跟在 2 項標簽xsi:schemaLocation=“” 標簽屬性中 xsi:schemaLocation=“http://www.springframework.org/schema/aop/spring-aop-3.1.xsd” 註意:嚴禁URL後面帶 "/"可能會出錯
推薦:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:task="http://www.springframework.org/schema/task" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd"> </beans>