【问题标题】:Apache Camel - UriEndpoint is missing values for attributes title,syntaxApache Camel - UriEndpoint 缺少属性标题、语法的值
【发布时间】:2016-06-29 13:46:56
【问题描述】:

在升级 JBoss Fuse 6.1 -> 6.2 并导致 Apache Camel 2.12 -> 2.15 之后,我们的自定义组件之一出现以下编译错误:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] [redacted].java:[11] error: annotation UriEndpoint is missing values for attributes title,syntax
[ERROR] [redacted].java:[8] error: annotation UriEndpoint is missing values for attributes title,syntax
[INFO] 2 errors 

*-注意[redacted] 表示“已删除”或“匿名”部分

【问题讨论】:

    标签: java apache-camel jbossfuse


    【解决方案1】:

    解决方案是从:

    @UriEndpoint(scheme = "[redacted]")
    

    到:

    @UriEndpoint(scheme = "[redacted]", syntax = "scheme:host:port/path", title = "[redacted]")
    

    更多信息在@UriEndpointJavaDoc

    The documentation 是一个非常神秘的 ATM。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-15
      • 1970-01-01
      • 2018-04-22
      相关资源
      最近更新 更多