spring的xml配置文件如下
<?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"
xmlns:p="http://www.springframework.org/schema/p"
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 id="personDao" class="com.dao.imp.PersonDaoBean"></bean>
<bean id="personService" class="com.service.impl.PersonServiceBean">
<constructor-arg index="0" type="com.dao.PersonDao" ref="personDao"></constructor-arg>
<constructor-arg index="1" value="caixuedongconstructor"></constructor-arg>
</bean>
</beans>请问 1、xmlns:context="http://www.springframework.org/schema/context"这句是什么意思啊?
2、 在xsi:schemaLocation里 http://www.springframework.org/schema/context又是什么意思啊?
关键xsi:schemaLocation代表什么啊。
3、以上1和2有什么关系吗?
最近我在学spring,个人能力有限,到网上求助,请知道者给点提示。
<?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"
xmlns:p="http://www.springframework.org/schema/p"
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 id="personDao" class="com.dao.imp.PersonDaoBean"></bean>
<bean id="personService" class="com.service.impl.PersonServiceBean">
<constructor-arg index="0" type="com.dao.PersonDao" ref="personDao"></constructor-arg>
<constructor-arg index="1" value="caixuedongconstructor"></constructor-arg>
</bean>
</beans>请问 1、xmlns:context="http://www.springframework.org/schema/context"这句是什么意思啊?
2、 在xsi:schemaLocation里 http://www.springframework.org/schema/context又是什么意思啊?
关键xsi:schemaLocation代表什么啊。
3、以上1和2有什么关系吗?
最近我在学spring,个人能力有限,到网上求助,请知道者给点提示。
解决方案 »
- 求 精通J2EE Eclipse+Struts 2+Hibernate+Spring 整合应用案例(第2版)的光盘文件
- S2SH整合问题
- 类型转换不成功时,struts2 的i18n没有起到作用
- 学spring哪本书(非电子版本)好点?
- java点击链接使他跳转到另一个页面显示相应的内容。
- 急,ArrayList问题,答案正确给100分,在线等
- 关于JAVA的映射
- Struts的ActionForm是否支持数组啊???怎么用
- 请问为什么在做Entity时会有数据库得导入会不是自己设定的数据库呢?
- 求助:webapi传输大文本数据怎么提升提速,比如提供小说按章节下载大文本内容
- 超轻量级工作流示例及源码
- struts中name 和attribute的区别!
就像引入标签一样