上一页 1 ··· 10 11 12 13 14
摘要: 函数主要分为以下几类: 1.有固定返回值的。用assert 方法即可。 2.修改了状态。 (1)修改了数据库中的数据。可以查询数据库(select 语句),看数据是否发生了改变。 --原则上应该是用伪造数据的方法解决这种依赖。 两个小例子: import org.junit.Test; import 阅读全文
posted @ 2016-03-01 17:04 知行-zhixing 阅读(311) 评论(0) 推荐(0)
摘要: @Resource的作用相当于@Autowired,只不过@Autowired按byType自动注入,而@Resource默认按 byName自动注入罢了。@Resource有两个属性是比较重要的,分是name和type,Spring将@Resource注解的name属性解析为bean的名字,而ty 阅读全文
posted @ 2016-02-29 10:31 知行-zhixing 阅读(680) 评论(0) 推荐(0)
摘要: 1.注解 @TypeDefs:引入枚举类型 @JoinColumn(name = "brand_id", referencedColumnName = "id") ,name是本类(表)在数据库的字段名,referencedColumnName 是关联类(表)在数据库中的关联字段名 阅读全文
posted @ 2016-02-26 19:43 知行-zhixing 阅读(215) 评论(0) 推荐(0)
摘要: svn--graph--include 阅读全文
posted @ 2016-02-26 15:25 知行-zhixing 阅读(746) 评论(0) 推荐(0)
摘要: 1.全局搜索:shift+command+f 2搜索类:command+o 3.光标向前向后移动:command+option+(左/右) 4.删除一行: command+delete 阅读全文
posted @ 2016-02-23 18:55 知行-zhixing 阅读(729) 评论(0) 推荐(0)
摘要: 安装svn时,提示This client is too old to work with working copy........原因:svn的版本过旧,安装1.8的svn即可。下面简要说明一些步骤: 在使用svn中的Subversion/Compare with Lastest Repositor 阅读全文
posted @ 2016-02-18 20:34 知行-zhixing 阅读(1425) 评论(0) 推荐(0)
摘要: <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3.dtd"> ***Mapper.xml前面的配置文件 阅读全文
posted @ 2016-01-31 09:06 知行-zhixing 阅读(151) 评论(0) 推荐(0)
摘要: HTTP Status 500 - Request processing failed; nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanProp 阅读全文
posted @ 2016-01-30 13:50 知行-zhixing 阅读(3928) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-01-28 07:19 知行-zhixing 阅读(2249) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14