2017-12-13 24 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> 

만 허용하지만 여전히 이름 속성과 같은 오류가 발생하고 왜 세계 유일의 예외 전략이 필요합니까? 이름 대신이 완벽하게 작동에 이름 :

+0

당신은 더 구체적 일 수 있습니까? 그 코드 스 니펫 – Armando

답변

1

오류 문서를 사용하여이 줄 <catch-exception-strategy **name**="400:BadRequest" when="#[message.inboundProperties['http.status']==&quot;400&quot;]" doc:name="400:BadRequest">

에 있었다!

+0

의 이름은 일반적으로 전역 요소에서만 필요하므로 잘못된 이름으로 다시 사용할 수 있으며 이름으로 참조 할 수 있습니다. doc : name은 정보 용입니다. –