本文共 747 字,大约阅读时间需要 2 分钟。
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
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/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.1.xsd">
base-package="com.springinaction.chapter01.knight" />
以上示例显示了具有多个命名空间的XML文件的示例.这些命名空间的目的是什么,最重要的是为什么即使在没有互联网连接的情况下也可以工作?
我认为以xsi:schemaLocation开头的第二个位包含XML模式文件,用于验证XML文档的结构.如果我运行在不在网络上的机器上使用此配置文件的应用程序,这些工作是如何工作的? URL是否以某种方式别名到JAR文件?
转载地址:https://blog.csdn.net/weixin_32820131/article/details/114565600 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!