上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 35 下一页
摘要: /// /// 金额区间判断帮助类 /// public static class DecimalRangeHelper { /// /// 是否有交集 /// /// /// /// public static bool IsInter... 阅读全文
posted @ 2018-01-31 17:12 zslm___ 阅读(3247) 评论(0) 推荐(0) 编辑
摘要: class AllocUser { //客户多于客服 public static void Test() { var customers = new List() { new Customer() { ... 阅读全文
posted @ 2018-01-25 19:28 zslm___ 阅读(508) 评论(0) 推荐(0) 编辑
摘要: class ListTest { public static void Test() { #region 值类型 var oListVal = new List() { 1,2,3,4 }; var nL... 阅读全文
posted @ 2018-01-21 11:01 zslm___ 阅读(2041) 评论(0) 推荐(0) 编辑
摘要: 1 2.引入依赖 3.写单元测试 阅读全文
posted @ 2018-01-16 15:32 zslm___ 阅读(25215) 评论(0) 推荐(0) 编辑
摘要: org.mockito mockito-core 1.9.0 test package com.xxx.test.subscribe; import org.junit.Assert; import org.junit.Before;... 阅读全文
posted @ 2018-01-15 14:25 zslm___ 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 或者 对于foreach标签的解释参考了网上的资料,具体如下: foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。 foreach元素的属性主要有 item,index,collection,open,separator,close。 item表示集合中每一个元素进行迭代 阅读全文
posted @ 2018-01-08 19:15 zslm___ 阅读(163) 评论(0) 推荐(0) 编辑
摘要: List list = new ArrayList(); //list.stream().filter((String s)->System.out.print(s);return s); String str="sadfasdf"; //str.length() Function func1= (s1)->s1.... 阅读全文
posted @ 2017-12-29 18:59 zslm___ 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 2.拦截类 3. 4. 对EnableAop改进,支持自动获取相应的接口类,并传入拦截器数组 5.对于wcf服务无法调用控制器的拦截器(ActionFilter),所以可以调用该服务时就自动实现了拦截 6.下一步改进,在EnableAop()里可以无需传入类型参数,而代替的是IInterceptor 阅读全文
posted @ 2017-12-20 20:17 zslm___ 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Linq; using Castle.DynamicProxy; namespace AopTest { class AopTest { static public void Test() { var proxyGenerator = new ProxyGenerato... 阅读全文
posted @ 2017-12-20 15:15 zslm___ 阅读(732) 评论(0) 推荐(0) 编辑
摘要: /// /// 方法帮助类 /// public class ActionHelper { /// /// 统一计算执行时间 /// /// 执行方法 /// public static int ComputeMethodCostMilliseconds(Ac... 阅读全文
posted @ 2017-12-18 18:20 zslm___ 阅读(458) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 35 下一页