【发布时间】:2011-08-18 00:23:35
【问题描述】:
我看到我们有多个 url 作为这个属性的值,就像在 spring 中一样:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
为什么需要它以及它的用途是什么? Spring 是否会转到 url 并进行验证? xmlns 和 xsi:schemaLocation 有什么区别?
【问题讨论】:
标签: xsd