自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

hejinwei_1987的专栏

好记性不如烂博客

  • 博客(4)
  • 资源 (2)
  • 收藏
  • 关注

原创 eclipse 加亮选中部分

window-preferences-general-editors-text editors-annotations-occurrences

2013-01-13 00:25:09 346

转载 Java中的transient,volatile和strictfp关键字

原文转自:http://www.iteye.com/topic/52957Java中的transient,volatile和strictfp关键字     如果用transient声明一个实例变量,当对象存储时,它的值不需要维持。例如: Java代码  class T {     transient int a;  //不需要维持     int b;

2013-01-10 18:54:40 269

转载 Java网络爬虫的实现

网上看到的,感觉写得挺好的:http://developer.51cto.com/art/201103/248141.htm记得在刚找工作时,隔壁的一位同学在面试时豪言壮语曾实现过网络爬虫,当时的景仰之情犹如滔滔江水连绵不绝。后来,在做图片搜索时,需要大量的测试图片,因此萌生了从Amazon中爬取图书封面图片的想法,从网上也吸取了一些前人的经验,实现了一个简单但足够用的爬虫系统

2013-01-06 11:35:53 591

原创 Berkeley DB 使用实例

如下:import java.io.File;import java.util.SortedMap;import com.sleepycat.bind.serial.ClassCatalog;import com.sleepycat.bind.serial.SerialBinding;import com.sleepycat.bind.serial.StoredClassCatalo

2013-01-04 15:35:39 1100

perf4j jar包

perf4j jar包 目前项目使用的 绝对能用

2015-09-18

MyEclipse_MyBatis_Generotor

把文件夹中内容放到eclipse/MyEclipse对应的文件夹中,在eclipse/MyEclipse中新建->Other->MyBatis XXX,在生成的xml中填写数据库配置信息(别忘了配置驱动jar包),右键Generator MyBatis XXX 生成。以下是我的例子: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" > <generatorConfiguration > <classPathEntry location="/Users/jinweihe/plan/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.9.jar" /> <context id="context1" > <!-- 去掉那些没用的注释 --> <commentGenerator> <property name="suppressAllComments" value="true" /> </commentGenerator> <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://127.0.0.1:3306/plan" userId="root" password="root" /> <javaModelGenerator targetPackage="com.hjw.plan.mybatis.model" targetProject="plan" /> <sqlMapGenerator targetPackage="com.hjw.plan.mybatis.mapper" targetProject="plan" /> <javaClientGenerator targetPackage="com.hjw.plan.mybatis.dao" targetProject="plan" type="XMLMAPPER" /> <table tableName="plans" domainObjectName="Plan" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" > <property name="useActualColumnNames" value="true"/> </table> <table tableName="friendships" domainObjectName="Friendship" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" > <property name="useActualColumnNames" value="true"/> </table> </context> </generatorConfiguration>

2015-08-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除