Apache Camel - UriEndpoint 缺少属性标题、语法的值
Apache Camel - UriEndpoint is missing values for attributes title,syntax
升级 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]
表示 "removed" 或 "anonymized" 部分
解决方案是从:
@UriEndpoint(scheme = "[redacted]")
至:
@UriEndpoint(scheme = "[redacted]", syntax = "scheme:host:port/path", title = "[redacted]")
更多信息见@UriEndpoint
JavaDoc
The documentation 是一个相当神秘的 ATM。
升级 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]
表示 "removed" 或 "anonymized" 部分
解决方案是从:
@UriEndpoint(scheme = "[redacted]")
至:
@UriEndpoint(scheme = "[redacted]", syntax = "scheme:host:port/path", title = "[redacted]")
更多信息见@UriEndpoint
JavaDoc
The documentation 是一个相当神秘的 ATM。