看了今天老大给我们的配置文件,有的是我们经常用的<beans...>有的配置文件是<beans:bean>怎么看里边的作用
解决方案 »
- struts2拦截器问题求助,
- ibatis有点不懂 大哥们指点哈。。。。谢谢
- Java crypto 中的 byte 限制问题
- 如何通过java程序得到weblogic的线程数量和总线程数(也就是相关线程池信息)
- 用request.setAttribute在debug中没有值
- 这样程序界面怎么实现
- HIBERNATE异常信息,请教各位
- webservice发布问题
- STRUTS高手们进来帮帮我!!!!!!!!!!!!!!!!!!!!!!!感谢感谢
- 求SQL Server 7 Driver for JDBC
- 如果是forward,struts2里怎么判断不出session里的对象是null
- Java抽象类
xmlns:beans="http://www.springframework.org/schema/beans"
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-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
......
<beans:bean id="accessDecisionManager" class="org.springframework.security.access.vote.AffirmativeBased">
<beans:property name="allowIfAllAbstainDecisions" value="false" />
<beans:property name="decisionVoters">
<beans:list>
<beans:bean class="org.springframework.security.access.vote.RoleVoter">
<beans:property name="rolePrefix" value="" />
</beans:bean>
<beans:bean class="org.springframework.security.access.vote.AuthenticatedVoter"/>
</beans:list>
</beans:property>
</beans:bean>
.....
这么看来好像真的是在上面定义了耶 但是起了什么作用呢
xmlns:beans="http://www.springframework.org/schema/beans"
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-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd"> 红色字的意思就是你这个文件的默认schema为security,所以你的beans定义就需要加上前缀beans
一般的定义文件默认都是beans,你可以仔细比较一下这个头上的定义