java - IntelliJ 提示 OSGi 引用属性

标签 java spring intellij-idea osgi

我有一个 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/

相关文章:

spring - Spring MVC <错误页面>不起作用

java - 以编程方式将 POJO 转换为 @Configuration Spring

spring - 使用 ReactiveElasticsearchClient 时配置 spring.codec.max-in-memory-size

intellij-idea - 如何使用 IntelliJ IDEA 和 Wildfly Swarm 运行 Arquillian 测试

Java:在 Calendar 对象中设置日期时,我可以使用日/月/年引用吗?

java - Java 编译器中是否有全局设置来禁用 String.formatted() 的弃用?

java - Spring Mail - 在单独的线程中发送电子邮件找不到附件临时文件

java - 键绑定(bind)不起作用

ruby - 运行配置错误 : Custom RSpec runner script doesn't exist

intellij-idea - Intellij IDEA 查找匹配的标记标签