问一下 spring的命名空间是怎么样确定的?就是配置文件里的那些schema

J2EE 码拜 7年前 (2017-04-21) 824次浏览
<beans xmlns=”http://www.springframework.org/schema/beans”
xmlns:aop=”http://www.springframework.org/schema/aop”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd”>
解决方案

20

是的,例如说你想用<aop></aop>的标签就要对aop进行声明以及写出它的location。
一般我们常用的也就是 context,aop,tx等等。

10

那上面一串不都是一些标准么

10

上面那些事固定的吧,下面的是你要用到什么就写什么

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明问一下 spring的命名空间是怎么样确定的?就是配置文件里的那些schema
喜欢 (0)
[1034331897@qq.com]
分享 (0)