Spring Annotate на уровне класса с помощью @EnableScheduling - PullRequest
0 голосов
/ 11 июня 2019

У меня есть класс обслуживания с функциональностью для выполнения асинхронного вызова.Код приведен ниже:

@Service
public class EllaService {

    @Async
    public void invokeEllaAsync( final IrisBo irisBo ) throws EllaGatewayUnsuccessfulResponseException {

        if( !isTrafficIgnored( irisBo ) ) {
            try {
                callEllaService( irisBo );
            }
            catch( EllaGatewayUnsuccessfulResponseException ex ) {
                throw new EllaGatewayUnsuccessfulResponseException( ex.getMessage(), ex.getCause() );
            }

        }
    }
}

Нужно ли комментировать на уровне класса с помощью @EnableScheduling для правильной работы?

1 Ответ

1 голос
/ 11 июня 2019
...