
项目记录
解忧草1012
游戏人生
展开
-
关于 Server:Apache-Coyote/1.1 版本泄露漏洞解决方案
vim /etc/httpd/conf/httpd.conf设置httpd ServerTokens Prod对于网上普通推荐以上方式不能用的朋友,可以试试以下方式<Connector port="8088" protocol="HTTP/1.1" connectionTimeout="20000" server="Apache" redirectPort="8443" URIEncoding="UTF-8" maxPost.原创 2020-08-07 17:25:32 · 5856 阅读 · 0 评论 -
Linux安装mongodb总结
一、安装过程1.到mongodb官网下(https://www.mongodb.com/download-center#community)载对应系统的压缩包,我的系统是CentOS 7.2,64位。(注意不要选错系统版本,也可以在本地下载好后上传到云服务器)2.默认下载路径是到用户目录下的Downloads目录,将其解压tar -zxvf mongodb-linux-x86_64-...原创 2018-12-05 14:37:10 · 331 阅读 · 0 评论 -
linux 自动备份项目脚本
#!/bin/shdatestr=`date +%Y-%m-%d`echo datestr:$datestrsavepath=~/applications/app/backup/$datestrecho target path:$savepath if [ -d $savepath ]; thenrm -rf $savepath;fimkdir $savepath原创 2016-09-02 17:26:11 · 565 阅读 · 0 评论 -
前台JS(type=‘file’)读取本地文件的内容,兼容各种浏览器 二
前台js读取本地文件内容方法:1、IE用new ActiveXObject("Scripting.FileSystemObject")2、其他用FileReader对象 html5的方法说法不严谨,具体自己测试,复制以下代码保存为html直接可以运行。 function upload(input) { if (typeof window.ActiveXObject !原创 2014-12-15 12:32:55 · 3291 阅读 · 0 评论 -
前台JS(type=‘file’)读取本地文件的内容,兼容各种浏览器 一
前台JS读取本地文件内容,兼容IE7、8、9、10 FF Chrome等各种版本,纠结了好长时间,终于找到方法,希望能帮到你,代码如下。直接复制保存为html运行看效果。function upload(input) { //支持chrome IE10 if (window.FileReader) { var file = input.files[0]; filename原创 2014-12-15 11:54:17 · 14389 阅读 · 4 评论 -
XSLT转换xml文件的案例
XML文件: 1 ABCABCABCdfafadssfasdfafadssfas EFGdfafadssfas dfafadssfas dfafadssfas 1 ABC ABC原创 2013-11-15 10:18:28 · 2726 阅读 · 0 评论 -
关于tomcat的路径(WEB-INF)的一些路径的记录
eclipse中项目部署到tomcat时,tomcat的目录webapps中没有项目,而是部署到了eclipse中的工作空间的一个目录中,路径为:E:\.metadata\.plugins\org.eclipse.wst.server.core\tmp1关于路径,不同的环境,获取的路径也不一样:main环境:虚拟机环境,获取的路径就是工作空间的路径servlet环境:服务器原创 2013-11-15 10:02:32 · 2071 阅读 · 0 评论 -
elrte-web编辑器,案例代码分享
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%><% String contextPath = request.getContextPath();%>Insert title here<link rel="stylesheet原创 2013-11-19 10:50:03 · 849 阅读 · 0 评论 -
String TO XML
Document doc = saxReader.read(new ByteArrayInputStream(fileString.getBytes()));// Element rootElement = doc.getRootElement(); OutputFormat format = OutputFormat.cr原创 2013-11-15 10:15:13 · 653 阅读 · 0 评论