Format source code
This commit is contained in:
parent
20b387c5dd
commit
2a8b557a3f
@ -27,12 +27,6 @@ public class AMQPHelloWorldMessageApp {
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
// ApplicationContext context = new AnnotationConfigApplicationContext(HelloWorldConfiguration.class);
|
|
||||||
// AmqpTemplate amqpTemplate = context.getBean(AmqpTemplate.class);
|
|
||||||
//
|
|
||||||
// amqpTemplate.convertAndSend("Hello World");
|
|
||||||
// System.out.println("Sent: Hello World");
|
|
||||||
|
|
||||||
SpringApplication.run(AMQPHelloWorldMessageApp.class, args);
|
SpringApplication.run(AMQPHelloWorldMessageApp.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,7 +63,6 @@ public class AMQPHelloWorldMessageApp {
|
|||||||
// return new Queue(MY_QUEUE_NAME, NON_DURABLE);
|
// return new Queue(MY_QUEUE_NAME, NON_DURABLE);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -84,7 +77,6 @@ public class AMQPHelloWorldMessageApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RabbitListener(queues = MY_QUEUE_NAME)
|
@RabbitListener(queues = MY_QUEUE_NAME)
|
||||||
public void listen(String in) {
|
public void listen(String in) {
|
||||||
System.out.println("Message read from myQueue : " + in);
|
System.out.println("Message read from myQueue : " + in);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user