Весенняя интеграция, поддерживаемая почтой queue + java config [duplicate]

Вместо input.nextLine() используйте input.next(), что должно решить проблему.

Измененный код:

public static Scanner input = new Scanner(System.in);

public static void main(String[] args)
{
    System.out.print("Insert a number: ");
    int number = input.nextInt();
    System.out.print("Text1: ");
    String text1 = input.next();
    System.out.print("Text2: ");
    String text2 = input.next();
}
1
задан muttonUp 12 September 2015 в 12:38
поделиться

1 ответ

Reverse спроектировал то, что сделал XML-файл, и это ответ.

У вас есть сообщение MessageStore в MessageGroupQueue

Посмотрите что-нибудь подобное

@Bean
public MessageChannel messageStoreBackedChannel() {
    return new QueueChannel(
        new MessageGroupQueue(<<MessageStoreImplementation>>, "Group ID")
    );
}
4
ответ дан muttonUp 31 August 2018 в 22:58
поделиться
Другие вопросы по тегам:

Похожие вопросы: