摘要: BeanWrapper 是Spring提供的一个用来操作javaBean属性的工具,使用它可以直接修改一个对象的属性。 对于bean属性的操作,大家熟知的主要有下面这些工具类: 1.Apache的BeanUtils和PropertyUtils 2.cglib的BeanMap和BeanCopier 3 阅读全文
posted @ 2017-10-07 14:31 爪哇小生 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: public static String readFileByUrl(String urlStr) { String res=null; try { URL url = new URL(urlStr); HttpURLConnection conn = (HttpURLConnection)url.openCon... 阅读全文
posted @ 2017-10-07 10:31 爪哇小生 阅读(10923) 评论(0) 推荐(0) 编辑