spring
http://www.springframework.org/schema/ 根据需求选择
如:
1、选择 : aop
2、复制
浏览器地址 , 粘入 配置文件
<beans
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
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>
原标题:spring xmlns 记录
关键词:Spring