Java IntelliJ正在抱怨OSGi引用属性
我的Java IntelliJ正在抱怨OSGi引用属性,java,spring,intellij-idea,osgi,Java,Spring,Intellij Idea,Osgi,我的spring context.xmlcofiguration文件中有一个OSGi引用。当我指定: <osgi:reference id="cxfInboundLoggingInterceptor" interface="com.groupgti.esb.cxf.interceptors.MessageLoggerInbound" /> 从SpringOSGi: 元素用于定义充当OSGi服务(或一组服务)代理的本地bean。唯一需要的 属性是id(定义本地bean的名称)和 接口
spring context.xml
cofiguration文件中有一个OSGi
引用。当我指定:
<osgi:reference id="cxfInboundLoggingInterceptor" interface="com.groupgti.esb.cxf.interceptors.MessageLoggerInbound" />
从Spring
OSGi
:
元素用于定义充当OSGi服务(或一组服务)代理的本地bean。唯一需要的
属性是id(定义本地bean的名称)和
接口(定义接口的完全限定名)
目标服务已在下注册)
所以我看到id是必需的,但是为什么
IntelliJ
会抱怨它呢?我注意到OSGiXSD是必需的
<xsd:import namespace="http://www.springframework.org/schema/beans"/>
<xsd:import namespace="http://www.springframework.org/schema/tool"/>
对我来说,他们没有找到。但即使你设置了它们,它似乎也不起作用
您可能需要在提交IntelliJ的错误报告。您可能需要限定id属性:xml:id?我在年创建了此错误的记录,我花了几个小时试图解决相同的问题,但失败了。我怀疑这是一个IDEA错误,现在我忽略了它。可以禁用检查(知道是哪一个)来抑制这些错误吗?
<xsd:import namespace="http://www.springframework.org/schema/beans"/>
<xsd:import namespace="http://www.springframework.org/schema/tool"/>