0 votes
in Spring by

In Spring Messaging, which annotation is used to mark a method to be triggered by a message?

a) @MessageListener

b) @EventListener

c) @ReceiveMessage

d) @OnMessage

1 Answer

0 votes
by
a) @MessageListener

Explanation:

The @MessageListener annotation marks a method to be triggered when a message arrives.
...