【发布时间】:2014-07-23 08:28:33
【问题描述】:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd"
xmlns:osgi="http://www.springframework.org/schema/osgi">
这些是我得到的错误:
- 匹配的通配符是严格的,但找不到元素“osgi:service”的声明
- 匹配的通配符是严格的,但找不到元素“osgi:reference”的声明
【问题讨论】:
-
+1,这类问题在 Spring XML 配置中是一个很常见的陷阱。