在项目中,rabbitMQ返回的不是JSON而是二进制数
json jar :
import com.alibaba.fastjson.JSON;
import net.sf.json.JSONObject;
@MessageQueueListener(queues = "check_result_v1_queue_test0530")
public void process(byte[] result) {String json = "";
try {
System.out.println(new String(result,"UTF-8"));
json = new String(result,"UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
JSONObject jsonObj = JSONObjec