* upgrade to spring boot 1.5.2 * add full update to REST API * modify ratings controller * upgrade herold * fix integration test * fix integration test * minor fix * fix integration test * fix integration test * minor cleanup * minor cleanup * remove log4j properties * use standard logbook.xml * remove log4j dependencies * remove commons-logging * merge * fix conflict * exclude commons-logging dependency * cleanup * minor fix * minor fix
17 lines
514 B
Java
17 lines
514 B
Java
package com.baeldung.springamqpsimple;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
public class MessageConsumer {
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(MessageConsumer.class);
|
|
|
|
@RabbitListener(queues = {SpringAmqpConfig.queueName})
|
|
public void receiveMessage(String message) {
|
|
logger.info("Received Message: " + message);
|
|
}
|
|
} |