我有一个 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 :
The
<osgi:reference>
element is used to define a local bean that acts as a proxy to an OSGi service (or set of services). The only required attributes are id (which defines the name of the local bean) and interface (which defines the fully qualified name of the interface that the target service is registered under).
所以我看到 id 是必需的,但为什么要 IntelliJ
在提示吗?
最佳答案
我已经在 JetBrains Tracker 中创建了这个错误的票证
关于java - IntelliJ 提示 OSGi 引用属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12194334/