Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.17.0
-
Component/s: camel-core
-
Labels:None
-
Estimated Complexity:Unknown
Description
The usage of rest binding mode is confusing/doesn't work consistently.
If you look at the field definition:
@XmlAttribute @Metadata(defaultValue = "auto") private RestBindingMode bindingMode;
You would expect that the default value is "auto" but in fact there is no default when running.
You need to explicitly set it in configuration, like this:
restConfiguration()
.component("jetty")
.port(9097)
.bindingMode(RestBindingMode.auto)
;