摘要: 1.字符串的split()方法分解字符串为数组时,字符串尾部的空字符串不会被包括在生成的数组内.如:String abc="a,b,c,"; String[] abcArr=abc.split(","); 得到的字符串数组为{"a","b","c"} 阅读全文
posted @ 2015-08-29 15:49 predisw 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 1.如何在一个线程的任何地方(即其他层)获取 HttpServletRequestIn every request, theDispatcherServletbinds the currentHttpServletRequestto astatic ThreadLocalobject in theR... 阅读全文
posted @ 2015-08-29 14:56 predisw 阅读(162) 评论(0) 推荐(0) 编辑