2017-12-13 12 views
0

name属性は、私は以下のようにグローバル例外戦略を作成したグローバル例外戦略

<choice-exception-strategy name="GlobalExceptionStrategy"> 
     <catch-exception-strategy name="400:BadRequest" when="#[message.inboundProperties['http.status']==&quot;400&quot;]" doc:name="400:BadRequest"> 
      <logger message="Caught error with code #[message.inboundProperties['http.status']] and reason #[message.inboundProperties['http.reason']] for query payload #[message.payloadAs(java.lang.String)]" level="ERROR" doc:name="Logger"/> 
     </catch-exception-strategy> 
    </choice-exception-strategy> 

のみ許可されている。しかし、私はまだname属性のようなエラーを取得していますなぜ唯一のグローバル例外戦略上必要とされますか?

+0

あなたはもっと具体的になることができますか?コードスニペット – Armando

答えて

1

エラーは、docを使用して、この行に<catch-exception-strategy **name**="400:BadRequest" when="#[message.inboundProperties['http.status']==&quot;400&quot;]" doc:name="400:BadRequest">

た:名前の代わりに名前が完璧な作品!

+0

の名前は、一般的にはグローバル要素でのみ必要とされるので、再利用して名前で参照することはできません。 doc:nameはinfoのためのものです。 –

関連する問題