Spring name space for beans and context
2012-06-16 20:02
447 查看
A.2.8. The context schema
The context tags deal with ApplicationContext configuration thatrelates to plumbing - that is, not usually beans that are important to an end-user but rather beans that do a lot of grunt work in Spring, such as BeanfactoryPostProcessors.
The following snippet references the correct schema so that the tags in the context namespace are available to you.
<?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" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> <!-- <bean/> definitions here --> </beans>
相关文章推荐
- 码农小汪-spring框架学习之2-spring IoC and Beans 控制反转 依赖注入 ApplicationContext BeanFactory
- sruts2.1整合spring3.0抛出异常: Status 404 - There is no Action mapped for namespace /jsp and action name
- 码农小汪-spring框架学习之2-spring IoC and Beans 控制反转 依赖注入 ApplicationContext BeanFactory
- Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plansAndActi
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UserDao' def
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Can
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao'问题
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContex
- Get username and password for sina weibo
- There is no Action mapped for namespace [/] and action name [user!add] associated with context path
- There is no Action mapped for namespace / and action name . - [unknown location] 其中一种解决方法
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name '[beanName]'
- ORA-1536: space quota exceeded for tablespace "<name>"
- maven打包出现NamespaceHandler for XML schema namespace[http://www.springframework.org/schema/context]解决
- log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
- 彻底解决STRUTS2 错误There is no Action mapped for namespace / and action name login
- Struts2框架中HTTP Status 404 There is no Action mapped for namespace / and action name