摘要: public class TestSingleton { private static TestSingleton instance; private TestSingleton() {} public static TestSingleton getInsatance() { if(in... 阅读全文
posted @ 2015-10-20 16:12 牛肉羊杂汤 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 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 牛肉羊杂汤 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 有时候nginx会报HTTP400错误,而且这个HTTP400错误并不是每次都会出现的, 排查发现nginx 400错误是由于request header过大,通常是由于cookie中写入了较长的字符串所引起的。解决方法: 不要在cookie里记录过多数据,如果实在需要的话可以考虑调整在n... 阅读全文
posted @ 2015-09-15 11:19 牛肉羊杂汤 阅读(21038) 评论(0) 推荐(1) 编辑