2017-07-18 128 views
2

模式互联网连接的过程正常工作,但它让我看到下面的警告消息时,Internet连接关闭模式不工作的时候没有互联网连接的

文档中引用没有语法限制(DTD或XML Schema)。

我已经在弹簧调度-servlet.xml中使用下面的模式

<beans xmlns="http://www.springframework.org/schema/beans" 
 
\t xmlns:context="http://www.springframework.org/schema/context" 
 
\t xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" 
 
\t xsi:schemaLocation="http://www.springframework.org/schema/beans  
 
     http://www.springframework.org/schema/beans/spring-beans-4.0.xsd 
 
     http://www.springframework.org/schema/context 
 
     http://www.springframework.org/schema/context/spring-context-4.0.xsd 
 
     http://www.springframework.org/schema/mvc 
 
     http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">

我应该怎么做才能解决这个问题?

回答

2

首先,您使用的是公共URL的模式。很明显,试图从互联网上下载。
如果使用相对路径,下载的模式,它应该工作(但不推荐)

编辑:
通过一些帖子会后,我发现这example。希望它有助于