File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/main/java/net/harunote/hellomessagequeue/step4 Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 1010@ Configuration
1111public 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 );
You can’t perform that action at this time.
0 commit comments