【发布时间】:2019-05-07 17:01:27
【问题描述】:
配置问题:找不到 XML 模式命名空间的 Spring NamespaceHandler [http://www.springframework.org/schema/context] 违规资源:ServletContext资源[/WEB-INF/context.xml]
我该如何解决这些问题?
这是我的 context.xml:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <context:component-scan base-package="id.sisi.forca.test.app.ForcaServerAplication" /> </beans>
【问题讨论】:
-
您找到解决问题的方法了吗?
标签: java spring spring-boot