- 博客(17)
- 收藏
- 关注
转载 Html背景图
<table style="height: 210px;" ><tbody><tr><td style="background-position: center 10%; background-image: url('https://timgsa.baidu.com/timg?image&quality=80&siz...
2017-02-28 15:10:00 58
转载 自定义Razor 标签
1.首先需要一个abstract class WebViewPage<T> ,继承系统的System.Web.Mvc.WebViewPage<TModel> 再定义一个WebViewPage 继承 自定义的WebViewPage<dynamic>/// <summary> /// 本地化转换 /// &l...
2017-02-27 18:22:00 137
转载 java重载equals和hashCode
class Employee { private int salary; private java.util.Date hireDay; private String name; public int getSalary() { return salary; } public void setS...
2017-02-24 18:40:00 86
转载 Java换行符
public static final String NewLineSeparator=System.getProperty("line.separator","\n");转载于:https://www.cnblogs.com/zhshlimi/p/6438718.html
2017-02-24 15:20:00 57
转载 java算法外传之靠工资多久能实现小目标...
public static void main(String[] args) { //小目标 final int smallGoal=100_000_000; //月份 int month=1; //首月工资 final int firstMonthSalary=6_000; ...
2017-02-24 11:03:00 49
转载 Java缓存类loadingCache
<dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>18.0</version>...
2017-02-23 17:15:00 134
转载 java lambda表达式
ArrayList<String> list = new ArrayList<String>(); list.add(0, "b"); list.add(1, "a"); list.add(0, "c"); list.add(1, "d");ITopable&l...
2017-02-23 17:04:00 34
转载 c#缓存帮助类
public static class CacheHelper { static object _lockObj = new object(); private static Dictionary<string, object> _lockObjDict = new Dictionary<string, object...
2017-02-23 14:44:00 177
转载 java反射之一
public static void main(String[] args) { try { Class cla = Class.forName("com.money.test.Employee"); Object obj = cla.newInstance(); Method metho...
2017-02-23 14:42:00 42
转载 大数字字符串转换为短字符串(7位转4位)
/// <summary> /// 将数值字符串加密为短字符串 /// </summary> public static class NumberToShortString { /// <summary> /// 共62个字符 /// </summa...
2017-02-22 18:48:00 384
转载 A reader
A reader lives a thousand lives before he die... The man who never reads lives only one.转载于:https://www.cnblogs.com/zhshlimi/p/6424562.html
2017-02-21 16:02:00 63
转载 Newtonsoft.Json 自定义序列化格式转化器
public static class JsonHelper { static JsonHelper() { Newtonsoft.Json.JsonSerializerSettings setting = new Newtonsoft.Json.JsonSerializerSettings(); ...
2017-02-21 09:48:00 573
转载 Java线程同步之静态方法
静态方法是同步方法:自动加锁,锁的对象是类对象public static void main(String[] args) { Thread [] threadArr=new Thread[10]; for (Thread item:threadArr) { item=new Thread(){ ...
2017-02-15 17:38:00 87
转载 Java的JsonHelper
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --> <dependency> <groupId>com.google.code.gson</groupId> <...
2017-02-14 18:21:00 236
转载 Life is a journey
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(约定优于配置)转载于:https://www.cnblogs.com/zhshlimi/p/6383031.ht...
2017-02-09 17:17:00 100
转载 c#生产/消费RabbitMQ
public sealed class JsonSerializer { public static byte[] Serialize(object message) { return Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(message));...
2017-02-05 19:28:00 188
转载 线程设置超时
var cts = new CancellationTokenSource(); Thread t = new Thread(new ThreadStart(() => { Console.WriteLine(string.Format("{1}线程Id:{0}开始...
2017-02-05 18:16:00 70
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人