会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
行走在路上
博客园
首页
新随笔
联系
订阅
管理
2015年10月20日
单利模式最安全高效写法
摘要: public class TestSingleton { private static TestSingleton instance; private TestSingleton() {} public static TestSingleton getInsatance() { if(in...
阅读全文
posted @ 2015-10-20 16:12 牛肉羊杂汤
阅读(186)
评论(0)
推荐(0)
2015年9月15日
判断是否是字母输入
摘要: public static boolean check(char c) { boolean boo = false; //System.out.println(c); if (((c >= 'a' && c = 'A' && c <= 'Z'))) { boo = true; ...
阅读全文
posted @ 2015-09-15 11:22 牛肉羊杂汤
阅读(172)
评论(0)
推荐(0)
nginx报http400错误解决方法
摘要: 有时候nginx会报HTTP400错误,而且这个HTTP400错误并不是每次都会出现的, 排查发现nginx 400错误是由于request header过大,通常是由于cookie中写入了较长的字符串所引起的。解决方法: 不要在cookie里记录过多数据,如果实在需要的话可以考虑调整在n...
阅读全文
posted @ 2015-09-15 11:19 牛肉羊杂汤
阅读(21568)
评论(0)
推荐(1)
公告