代码格式调整
This commit is contained in:
		| @@ -11,10 +11,7 @@ import javax.jms.Message; | ||||
| import javax.jms.Session; | ||||
|  | ||||
| /** | ||||
|  *  | ||||
|  * @author liang | ||||
|  * @description  队列消息生产者,发送消息到队列 | ||||
|  *  | ||||
|  */ | ||||
| @Component("queueSender") | ||||
| public class QueueSender { | ||||
| @@ -36,5 +33,4 @@ public class QueueSender { | ||||
| 			} | ||||
| 		}); | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
| @@ -11,10 +11,7 @@ import javax.jms.Message; | ||||
| import javax.jms.Session; | ||||
|  | ||||
| /** | ||||
|  *  | ||||
|  * @author liang | ||||
|  * @description Topic生产者发送消息到Topic | ||||
|  *  | ||||
|  */ | ||||
|  | ||||
| @Component("topicSender") | ||||
| @@ -26,6 +23,7 @@ public class TopicSender { | ||||
|  | ||||
|     /** | ||||
|      * 发送一条消息到指定的队列(目标) | ||||
|      * | ||||
|      * @param topicName 队列名称 | ||||
|      * @param message   消息内容 | ||||
|      */ | ||||
| @@ -37,5 +35,4 @@ public class TopicSender { | ||||
|             } | ||||
|         }); | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user