小编Ume*_*ali的帖子

无法阅读架构文档'http://www.springframework.org/schema/beans/spring-beans-3.0.xsd'

在启动我的Spring App时,我收到以下错误:

WARNING: Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document     
'http://www.springframework.org/schema/beans/spring-beans-3.0.xsd', because
1) could not find the document;
2) the document could not be read;
3) the root element of the document is not <xsd:schema>.
Run Code Online (Sandbox Code Playgroud)

我的springapp-servlet.xml如下:

<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-3.0.xsd">
<bean name="/hello.htm" class="springapp.web.HelloController"/>
</beans>
Run Code Online (Sandbox Code Playgroud)

请建议.

schema spring

14
推荐指数
1
解决办法
4万
查看次数

标签 统计

schema ×1

spring ×1