- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 一些linux命令
启动memcached/usr/memcached-1.4.5/bin/memcached -d -m 10 -u root -l 121.15.56.15 -p 9000 &启动sambaservice smb restart查看端口lsof -i:80远程复制scp -r /usr//tomcat-xxx root@121.15.56.15:
2012-05-10 18:12:13 501
原创 shell脚本 杀进程及其子进程
pstree pid -p | awk -F"[()]" '{for(i=0;i xargs 用来接受输出信息
2012-05-10 18:08:32 1971
原创 web.xml中load-on-startup标签的含义
在servlet的配置当中,6的含义是: 标记容器是否在启动的时候就加载这个servlet。当值为0或者大于0时,表示容器在应用启动时就加载这个servlet;当是一个负数时或者没有指定时,则指示容器在该servlet被选择时才加载。正数的值越小,启动该servlet的优先级越高。 Servlet specification: The load-o
2012-05-10 18:06:08 1075
原创 The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar可能一:web项目出现如上问题,据查是版本问题:JSTL 1.0 的声明是:JSTL1.1 的声明是: 项目中,已经是 jstl 1.2 版本
2012-05-10 18:05:30 136148 12
原创 eclipse遇到An error has occurred. See the log file
eclipse遇到An error has occurred. See the log file C:\workspace\.metadata\.log log文件内容:!ENTRY org.eclipse.core.resources 4 567 2012-03-18 00:29:35.775!MESSAGE Could not read metadata for 'C:\wor
2012-05-10 18:03:47 35820 6
原创 Mock RequestContextListener
用Mock模拟MockHttpServletRequest request = new MockHttpServletRequest(context);遇到下面错误时:java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outsid
2012-05-10 18:02:31 2191
原创 java获取区间随机数
iStart:开始数iEnd:结束数 private double getRandom(double iStart,double iEnd){ double start = 0; double end = 0; if(iStart > iEnd){ start = iEnd;
2012-05-10 18:01:18 1918
原创 decodeURIComponent URI malformed 错误
String name= getRequestParameter("name");try { //只需要在此加上编码 realName = URLEncoder.encode(getRequestParameter("name"),"UTF-8");}catch (UnsupportedEncodingException e) { logger.error
2012-05-10 18:00:27 9581
原创 eclispe非正常关闭后,报这个错误An error has occurred. See error log for more details.
解决方法:eclipse.exe -clean 即可解决
2012-05-10 17:59:36 963
原创 修改eclipse debug的代码源文件
1.进入debug模式2.选中项目,右击选edit the source lookup path,可以添加删除修改debug时相关的源代码
2012-05-10 17:59:01 3847 3
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人