spring-framework-3.2.5.RELEASE用的xml约束
2016-12-21 00:00
369 查看
示例:
<?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:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<!-- IOC容器的配置:要创建的所有的对象都配置在这里 -->
<bean id="user1" class="cn.xhe.a_hello.User"></bean>
</beans>
<?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:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<!-- IOC容器的配置:要创建的所有的对象都配置在这里 -->
<bean id="user1" class="cn.xhe.a_hello.User"></bean>
</beans>
相关文章推荐
- 系统整合Spring FullStack framework和Jersey RESTful framework 的web.xml写法
- Unable to locate Spring NamespaceHandler for XML schema namespace 【http://www.springframework.org/schema/context】
- Spring在web.xml请求中定义编码(org.springframework.web.filter.CharacterEncodingFilter)
- Webservice报错java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefinitionRead
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/sc
- org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource
- org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 52 in XML document from
- Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Li
- java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderContext.getResourceLoade
- org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML doc
- org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
- org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document fro
- WARN [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Ignored XML validation warnin
- org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document fro
- web.xml配置详解 org.springframework.web.context.ContextLoaderListener
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/s
- java.lang.NoSuchMethodError: org.springframework.web.context.support.XmlWebApplicationContext.getEnv
- org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
- Maven pom.xml cnfigurations for Spring framework