xml解码Java Bean
/*N o w J a v a . c o m 提供*/ //package com.nowjava; import java.beans.XMLDecoder; import java.io.*; public class Main { public static Object xmlDecode(byte[] bytes) { Object obj; InputStream is = new ByteArrayInputStream(bytes); try (XMLDecoder d = new XMLDecoder(is)) { obj = d.readObject();//来自 时代Java - nowjava.com } return obj; } public static <T>