10 2016 档案

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