解析字符串为泛型的方法

Type listType = new TypeToken<ArrayList<Pwd>>() {}.getType();
原文地址:https://www.cnblogs.com/netcorner/p/5149517.html