【问题标题】:Spring bean configuration xmlSpring bean配置xml
【发布时间】:2015-02-02 01:39:19
【问题描述】:

在 Spring config xml 中,我们有标签,在该标签中,我们有 xmlns、xsi 等。 所有这些细节意味着什么?这些细节何时以及如何重要?

<beans xmlns="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-2.5.xsd">   
</beans>

谢谢,

【问题讨论】:

标签: spring configuration-files


【解决方案1】:

你可以在这里找到 xsi:schema 的好答案Use of xsi:schemaLocation

而这份spring文档将帮助你详细了解spring配置XML Schema-based configuration

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-16
    • 1970-01-01
    相关资源
    最近更新 更多