Skip to content

Commit baaac54

Browse files
committed
step4 뉴스 구독 예제
1 parent 9492aab commit baaac54

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/net/harunote/hellomessagequeue/step4/NewsController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public void handleSubscribe(@Header("newsType") String newsType) {
1919
System.out.println("[#] newsType: " + newsType);
2020

2121
String newsMessage = newsPublisher.publish(newsType);
22+
System.out.println("# newsMessage: " + newsMessage);
2223

2324
}
2425
}

src/main/java/net/harunote/hellomessagequeue/step4/RabbitMQConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
@Configuration
1111
public class RabbitMQConfig {
1212

13-
// step3-2 예제 추가
13+
// step4 예제 추가
1414
public static final String FANOUT_EXCHANGE_FOR_NEWS = "newsExchange";
1515

1616
public static final String JAVA_QUEUE = "javaQueue";
1717
public static final String SPRING_QUEUE = "springQueue";
1818
public static final String VUE_QUEUE = "vueQueue";
19+
1920
@Bean
2021
public Queue javaQueue() {
2122
return new Queue(JAVA_QUEUE, false);

0 commit comments

Comments
 (0)