java中string转ByteBuffer

用到fastjson

public static ByteBuffer getByteBuffer(String s) {
    return JSON.parseObject(s, ByteBuffer.class);
}
原文地址:https://www.cnblogs.com/zhh2020/p/13137585.html