摘要:1privatestaticMap<String,Long>getPictureHeightAndWidthMap(StringpicUrl){2Map<String,Long>map=newHashMap();3try{4URLurl=newURL(picUrl);5HttpURLConnectionconnection=(HttpURLConnection)url6.openConnection();7DataInputStreamin=newDataInputStream(8connection.getInputStream());9BufferedImageim
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文