Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring异常:匹配的通配符是严格的,但找不到元素';int jpa:入站通道适配器';_Spring_Spring Boot_Spring Integration - Fatal编程技术网

Spring异常:匹配的通配符是严格的,但找不到元素';int jpa:入站通道适配器';

Spring异常:匹配的通配符是严格的,但找不到元素';int jpa:入站通道适配器';,spring,spring-boot,spring-integration,Spring,Spring Boot,Spring Integration,我有以下spring配置xml文件,该文件正在生成我文章标题中显示的异常: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"

我有以下spring配置xml文件,该文件正在生成我文章标题中显示的异常:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:task="http://www.springframework.org/schema/task"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-jpa="http://www.springframework.org/schema/integration/jpa"
xmlns:int-sftp="http://www.springframework.org/schema/integration/sftp"
xmlns:file="http://www.springframework.org/schema/integration/file"
xmlns:int-xml="http://www.springframework.org/schema/integration/xml"
xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/util
    http://www.springframework.org/schema/util/spring-util.xsd
    http://www.springframework.org/schema/task
    http://www.springframework.org/schema/task/spring-task.xsd
    http://www.springframework.org/schema/integration
    http://www.springframework.org/schema/integration/spring-integration.xsd
    http://www.springframework.org/schema/integration/jpa
    http://www.springframework.org/schema/integration/jpa/spring-integration-jpa.xsd
    http://www.springframework.org/schema/integration/sftp
    http://www.springframework.org/schema/integration/sftp/spring-integration-sftp.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
    http://www.springframework.org/schema/integration/file
    http://www.springframework.org/schema/integration/file/spring-integration-file.xsd
    http://www.springframework.org/schema/integration/xml
    http://www.springframework.org/schema/integration/xml/spring-
integration-xml.xsd"> 

<int-jpa:inbound-channel-adapter
    id="resultsProcessor"
    channel="responseChannel"
    auto-startup="true"
    named-query="OpenRecords"
    expect-single-result="true"
    delete-after-poll="false"
    entity-class="foo.Request">
        <int:poller 
        id="responsePoller" 
        fixed-rate="5000" 
        max-messages-per-poll="10">
        </int:poller>
</int-jpa:inbound-channel-adapter>

</beans>

我在上面提供的代码中删除了其他元素,并重命名了一些字段以简化示例。这就是为什么您会在顶部看到一些不适用于所示示例的模式和名称空间信息

错误实际上发生在与entity class=“foo.Request”>相对应的行上,但我不知道该行本身有什么问题,但这就是终止“>”的地方。换句话说,如果我删除了该行,并在poll=“false”之后删除“>”,那么错误就会出现


我是否缺少命名空间和/或架构位置定义?或者,可能是缺少部署依赖项吗?谢谢你的建议。谢谢。

请将
org.springframework.integration:springintegration-jpa
添加到您的依赖项中。您只是在类路径中缺少一个jar

您正在使用哪个版本的Spring Integration?目前的版本是5.0.2;该属性是在将近六年前的2.2中引入的。在类路径上有spring集成jpa jar吗?谢谢Oleg。我的pom中确实缺少这种依赖性。这解决了我的问题。为了澄清,我只需要:org.springframework.integration spring integration jpa2.2.1.RELEASE