如何在IntelliJ

时间:2017-02-07 00:12:32

标签: intellij-idea spring-integration xsd-validation

我得到了一个假阳性" Spring XML文件中的错误....

预期行为:带有DefaultAmqpHeaderMapper标头映射器的入站通道适配器元素在IntelliJ中正确验证

实际行为:IntelliJ报告标头映射器不是HeaderMapper类型

在3.0中修复了issue,但似乎我的IntelliJ正在针对旧版本的amqp架构验证以下applicationContext.xml。我该如何刷新它?



<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:int-amqp="http://www.springframework.org/schema/integration/amqp"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rabbit="http://www.springframework.org/schema/rabbit"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp-4.2.xsd http://www.springframework.org/schema/rabbit http://www.springframework.org/schema/rabbit/spring-rabbit.xsd">

   <int-amqp:inbound-channel-adapter
           channel="ch1" queue-names="queue"
           connection-factory="amqpConnectionFactory" error-channel="errorChannel"
           header-mapper="allHeadersMapper" concurrent-consumers="1" />
&#13;
&#13;
&#13;

编辑:在14.1.5中找到。在Linux上升级到2016.3.4并转载。 在https://github.com/dcw312/intellij-validation-error处使用简单代码重现。 IntelliJ问题已创建:https://youtrack.jetbrains.com/issue/IDEA-167842

0 个答案:

没有答案