我的 OSGi
配置文件中有一个 spring-context.xml
引用。当我指定:
<osgi:reference id="cxfInboundLoggingInterceptor" interface="com.groupgti.esb.cxf.interceptors.MessageLoggerInbound" />
IntelliJ
说: Attribute id is not allowed here
。我的 osgi
前缀指向这个模式:xmlns:osgi="http://www.springframework.org/schema/osgi"
和架构位置:
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
从
Spring
OSGi
documentation :所以我看到 id 是必需的,但是为什么
IntelliJ
提示它呢? 最佳答案
我注意到 osgi xsd 确实
<xsd:import namespace="http://www.springframework.org/schema/beans"/>
<xsd:import namespace="http://www.springframework.org/schema/tool"/>
对我来说,他们没有找到。但即使你设置了它们,它似乎也不起作用。
您可能需要在 http://youtrack.jetbrains.com/issues/IDEA 为 IntelliJ 提交错误报告。