10 2016 档案
摘要:使用BeanUtils设置/读取属性的值以及默认支持的自动转化: @Test //使用BeanUtils设置/读取属性的值以及自动转化 public void test1() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException{ Person p=new Person(); ...
阅读全文
摘要:获取类bean中的所有属性: @Test //获取类bean中的所有属性 public void test1() throws Exception{ BeanInfo info = Introspector.getBeanInfo(Person.class); PropertyDescriptor[] decriptors = info.getPropertyDescrip...
阅读全文
摘要:示例类 @SuppressWarnings("unused") public class Person { public String Name; private int Age; public Gender Gender; private static String Species = "人类"; public Person(){ ...
阅读全文
摘要:使用Chromium时会遇到 “缺少google api密钥,因此chromium的部分功能将无法使用”提示,google了一下 setx Google_API_KEY 和 chromium portable google api keys are missing 找到了解决办法。 打开windows的cmd命令提示符,依次输入以下命令: setx G...
阅读全文
浙公网安备 33010602011771号