02 2017 档案
摘要:甲方:武汉某某某某某有限公司住所地:武汉市某某某某某某某某某某
阅读全文
摘要:1.首先需要一个abstract class WebViewPage<T> ,继承系统的 System.Web.Mvc.WebViewPage<TModel> 再定义一个WebViewPage 继承 自定义的WebViewPage<dynamic> 2.更改View下的 web.config(不是项
阅读全文
摘要:class Employee { private int salary; private java.util.Date hireDay; private String name; public int getSalary() { return salary; } public void setSalary(int salary...
阅读全文
摘要:public static final String NewLineSeparator=System.getProperty("line.separator","\n");
阅读全文
摘要:com.google.guava guava 18.0 LoadingCache cache = CacheBuilder.newBuilder() .maximumSize(1000) .expireAf...
阅读全文
摘要:ArrayList list = new ArrayList(); list.add(0, "b"); list.add(1, "a"); list.add(0, "c"); list.add(1, "d"); ITopable sortDesc = ((strList) -> { ...
阅读全文
摘要:public static class CacheHelper { static object _lockObj = new object(); private static Dictionary _lockObjDict = new Dictionary(); /// /// 获取缓存,如果缓存不存在,则从 acqu...
阅读全文
摘要:public static void main(String[] args) { try { Class cla = Class.forName("com.money.test.Employee"); Object obj = cla.newInstance(); Method method2 = cla.g...
阅读全文
摘要:/// /// 将数值字符串加密为短字符串 /// public static class NumberToShortString { /// /// 共62个字符 /// private static readonly string Keys = "0123456789abcdefghijk...
阅读全文
摘要:A reader lives a thousand lives before he die... The man who never reads lives only one.
阅读全文
摘要:public static class JsonHelper { static JsonHelper() { Newtonsoft.Json.JsonSerializerSettings setting = new Newtonsoft.Json.JsonSerializerSettings(); Jso...
阅读全文
摘要:静态方法是同步方法:自动加锁,锁的对象是类对象
阅读全文
摘要:com.google.code.gson gson 2.8.0 import com.google.gson.Gson; import com.google.gson.GsonBuilder; class JsonHelper { public sta...
阅读全文
摘要:Life is a journey. What we should care about is not where it's headed but what we see and how we feel. Convention over Configuration(约定优于配置)
阅读全文
摘要:public sealed class JsonSerializer { public static byte[] Serialize(object message) { return Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(message)); } ...
阅读全文
摘要:var cts = new CancellationTokenSource(); Thread t = new Thread(new ThreadStart(() => { Console.WriteLine(string.Format("{1}线程Id:{0}开始运行", Thread.C...
阅读全文