1
스프링 통합 빈을 선언하는 두 가지 다른 방법이 있습니다. 그들은 둘 다 작동하는 것 같습니다. Spring STS Eclipse 기반 IDE를 사용하고 있습니다.spring-integration.xml에서 콩을 지정하는 방법은 어느 것이 좋습니까?
이 방법 :
<bean id="int-ftp:request-handler-advice-chain"
class="org.springframework.integration.handler.advice.ExpressionEvaluatingRequestHandlerAdvice">
<property name="trapException" value="true"></property>
<property name="onFailureExpression" value="#root"></property>
<property name="failureChannel" ref="errorChannel"></property>
</bean>
또는 이러한 방법 :
<int-ftp:request-handler-advice-chain>
<bean class="org.springframework.integration.handler.advice.ExpressionEvaluatingRequestHandlerAdvice">
<property name="trapException" value="true" />
<property name="onFailureExpression" value="#root" />
<property name="failureChannel" ref="errorChannel" />
</bean>
</int-ftp:request-handler-advice-chain>
어느 쪽이 더 나은 무엇입니까?