• 大小: 396KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-20
  • 语言: 其他
  • 标签: rabbitmq  

资源简介

rabbitMQ代码案例

资源截图

代码片段和文件信息

package com.zpc.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = “q_hello“)
public class HelloReceiver {

    @RabbitHandler
    public void process(String hello) {
        System.out.println(“Receiver1  : “ + hello);
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-05 17:20  rabbitMQ\
     目录           0  2018-08-05 17:51  rabbitMQ\boot-rabbitmq\
     文件         268  2018-08-05 17:20  rabbitMQ\boot-rabbitmq\.gitignore
     目录           0  2018-08-05 22:01  rabbitMQ\boot-rabbitmq\.idea\
     文件         693  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\compiler.xml
     文件         256  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\encodings.xml
     目录           0  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\inspectionProfiles\
     文件         418  2018-08-05 17:20  rabbitMQ\boot-rabbitmq\.idea\inspectionProfiles\Project_Default.xml
     目录           0  2018-08-05 17:22  rabbitMQ\boot-rabbitmq\.idea\libraries\
     文件         568  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xml
     文件         547  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xml
     文件         522  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_fasterxml_classmate_1_3_4.xml
     文件         644  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
     文件         595  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml
     文件         623  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml
     文件         674  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml
     文件         688  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml
     文件         729  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml
     文件         546  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xml
     文件         532  2018-08-05 17:22  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_rabbitmq_amqp_client_5_1_2.xml
     文件         700  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
     文件         611  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xml
     文件         611  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xml
     文件         455  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__junit_junit_4_12.xml
     文件         536  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_7_11.xml
     文件         578  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml
     文件         542  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xml
     文件         507  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__net_minidev_json_smart_2_3.xml
     文件         573  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml
     文件         608  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml
     文件         625  2018-08-05 17:21  rabbitMQ\boot-rabbitmq\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_32.xml
............此处省略461个文件信息

评论

共有 条评论