09 2012 档案

通过url获取图片的宽高
摘要:1privatestaticMap<String,Long>getPictureHeightAndWidthMap(StringpicUrl){2Map<String,Long>map=newHashMap();3try{4URLurl=newURL(picUrl);5HttpURLConnectionconnection=(HttpURLConnection)url6.openConnection();7DataInputStreamin=newDataInputStream(8connection.getInputStream());9BufferedImageim 阅读全文

posted @ 2012-09-26 09:34 timelyxyz 阅读(420) 评论(0) 推荐(0) 编辑

解决Mac下Eclipse模糊的问题
摘要:Do "Show package contents" on the Eclipse.app. Edit Contents/Info.plist. Just above Place this: NSHighResolutionCapableThen, log out or make a copy of the app so that OSX will notice the change. Now, the info window will not show "Open in Low Resolution" as checked. Launch Eclips 阅读全文

posted @ 2012-09-22 18:27 timelyxyz 阅读(834) 评论(0) 推荐(0) 编辑

Mac下设置PATH(全局变量)
摘要:1 首先查看PATH命令:$PATH 2 如何设置PATH命令:echo "export PATH=xxxxxx:$PATH" >> ~/.bash_profile解释:把"export PATH=xxxxxx:$PATH"输出打印到~/.bash_profile中去。3 Unix知识补充:~/.bash_profile介绍mac和linux终端一般用bash来进行解析。当bash在读完了整体环境变量的/etc/profile并借此调用其他配置文件后,接下来则是会读取用户自定义的个人配置文件。bash读取的文件总共有三种:~/.bash_pr 阅读全文

posted @ 2012-09-22 17:14 timelyxyz 阅读(1650) 评论(0) 推荐(0) 编辑

关于hibernate的left join
摘要:hibernate默认的,以及网络上的主流支持left join的表关系是one-to-many的,可以使用left join fetch(需要配置lazy="true" fetch="select"),也可以使用Criteria或者CriteriaQuery(link1link2)来进行查询。对于many-to-one,首先我们先建两个model:@Entitypublic class ClassOne { public String id; public boolean isDeleted; }@Entitypublic class ClassTwo 阅读全文

posted @ 2012-09-18 13:47 timelyxyz 阅读(1009) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示