在看到一些更加晦涩的错误信息后,我意识到这可能是由于此处存在虚假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/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
">
参考在线模式是一个好的实践方法吗?
例如,从上面的例子可以看出:
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
这个链接在没有网络问题且springframework.org正常运行时可以使用,但是从上面的内容可以看出,还有其他的链接:
http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd
这将会得到:
"Oops! This link appears to be broken"
确实是个小错误。
在项目中涉及到引用模式的URI时,有哪些最佳实践呢?
奖励问题:为什么Eclipse不会实时抱怨损坏的链接?(IntelliJ IDEA做得对吗!?)