无法在Spring Boot中创建骆驼端点

时间:2019-07-10 17:37:11

标签: spring spring-boot apache-camel

我正在Spring Boot应用程序中创建骆驼路由端点

<% posts.forEach(function(post) { %>

<div class="flex-container">
    <div class="row justify-content-around">
        <div class="col-sm">
                <h1><%=post.name %></h1>
                <div><%=post.fee %></div>
                <div><%=post.description %></div>
                <div><%= post.location%></div>  
                <div><a href="/gallery/pet/<%=post.id %>">View More</a></div>
                <% }) %>

        </div>

    </div>

</div>

实际端点适用于kafka生产者:

出现以下错误:


申请无法开始


说明:

以null定义的bean'endpoint2'无法注册。具有该名称的bean已被定义为null,并且禁用了覆盖。

操作:

考虑重命名其中一个bean或通过设置spring.main.allow-bean-definition-overriding = true启用覆盖

0 个答案:

没有答案