0
私はCamel Rest DSLを使用して休憩サービスを構築していますが、JsonPropertyアノテーションは認識されないようです。Camel Rest DSLがJsonPropertyアクセスを認識しない
は、私のようなpropery持っている:
class Test {
private int id;
@JsonProperty(access = Access.READ_ONLY)
private String text;
}
をし、残りの定義は次のとおりです。
{
"id":2,
"text":"asd"
}
テキストフィールドも初期化取得されています。私はそれを呼び出す
<rests xmlns="http://camel.apache.org/schema/spring">
<rest consumes="application/json" produces="application/json" path="/api/v1">
<post bindingMode="json" type="Test" uri="/path">
<route>
.....
</route>
</post>
</rest>
</rests>
。
私には何が欠けていますか?
Thxを