1. String str = "test";
    2. // String 转 Byte
    3. byte[] bytes = str.getBytes(StandardCharsets.UTF_8);
    4. // Byte 转 String
    5. String strs = new String(bytes);