摘要: //js获取项目根路径,如: http://localhost:8083/uimcardprjfunction getRootPath(){//获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jspvar curWwwPath=window.document.location.href;//获取主机地址之后的目录,如: uimcardprj/share/meun.jspvar pathName=window.document.location.pathname;var pos=curWwwPath.indexOf(pathName); 阅读全文
posted @ 2013-10-21 16:43 琦琦狐 阅读(112) 评论(0) 推荐(0) 编辑
摘要: public static void mkdirs(String path) { File file = new File(path); if (!file.exists()) { file.mkdirs(); } }文件夹是否存在public static void download(String urlString, String filename) throws Exception { URL url = new URL(urlString); URLConnection con = url.openConnection(); I... 阅读全文
posted @ 2013-10-21 15:53 琦琦狐 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 查看tomcat控制台:tail -f catalina.out删除文件或者文件夹: rm -rf (文件夹/文件)切换用户: su - oracle---------------------------------------------------------------操作oraclesu - oraclelsnrctl startsqlplus / as sysdbastartupexit---------------------------------------------------------------安装tar.gz1、打开一个SHELL,即终端 2、用cd 命令进入源代码 阅读全文
posted @ 2013-10-21 11:33 琦琦狐 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 重启服务器后文件夹名前面加上了时间.这个问题是由于中文环境所引起的。1、stopsrc -s inetd 停止网络服务2、startsrc -e LANG=en_US -s inetd 指定网络语言为英文 阅读全文
posted @ 2013-10-21 11:28 琦琦狐 阅读(188) 评论(0) 推荐(0) 编辑