Java XML模式位置最佳实践
在看到一些更加隐晦的错误消息后,我意识到它们可能是由于此处存在虚假URI:Java XML模式位置最佳实践,java,xsd,uri,Java,Xsd,Uri,在看到一些更加隐晦的错误消息后,我意识到它们可能是由于此处存在虚假URI: <?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:jaxws="http://cxf.apache.org/j
<?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:jaxws="http://cxf.apache.org/jaxws"
xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
http://activemq.apache.org/camel/schema/cxfEndpoint
http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
">
其中:
"Oops! This link appears to be broken"
哎呀
在项目中引用模式的URI的最佳实践是什么
附加问题:Eclipse为什么不实时抱怨断开的链接?(IntelliJ IDEA做得很好!?)看看CatalogResolver:
可能会有帮助。Spring在启动容器时不会通过网络加载模式-有一种机制可以嵌入,Spring使用这些内置模式来验证xml。这也适用于所有自定义名称空间
Eclipse可能会抱怨,因为Eclipse根据架构URI下载架构,而架构URI可能不是通过网络承载的,就像在您的案例中一样,在Eclipse首选项中也有一种缓存自定义架构的方法。这些URI指的是SPOF架构吗?(单点故障)
"Oops! This link appears to be broken"